Skip to content

Commit 1162cbb

Browse files
authored
Update deprecated numpy method calls
`numpy.product` was deprecated in favor of `numpy.prod`.
1 parent e83fe98 commit 1162cbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dicomweb_client/file.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ def _update_db(self):
857857
getattr(ds, 'NumberOfFrames', '1')
858858
),
859859
number_of_pixels_per_frame=int(
860-
np.product([
860+
np.prod([
861861
ds.Rows,
862862
ds.Columns,
863863
ds.SamplesPerPixel,
@@ -2027,7 +2027,7 @@ def insert_instances(
20272027
getattr(ds, 'NumberOfFrames', '1')
20282028
),
20292029
number_of_pixels_per_frame=int(
2030-
np.product([
2030+
np.prod([
20312031
ds.Rows,
20322032
ds.Columns,
20332033
ds.SamplesPerPixel

0 commit comments

Comments
 (0)