Skip to content

Commit

Permalink
Update deprecated numpy method calls
Browse files Browse the repository at this point in the history
`numpy.product` was deprecated in favor of `numpy.prod`.
  • Loading branch information
cgorman authored Jul 11, 2023
1 parent e83fe98 commit 1162cbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dicomweb_client/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ def _update_db(self):
getattr(ds, 'NumberOfFrames', '1')
),
number_of_pixels_per_frame=int(
np.product([
np.prod([
ds.Rows,
ds.Columns,
ds.SamplesPerPixel,
Expand Down Expand Up @@ -2027,7 +2027,7 @@ def insert_instances(
getattr(ds, 'NumberOfFrames', '1')
),
number_of_pixels_per_frame=int(
np.product([
np.prod([
ds.Rows,
ds.Columns,
ds.SamplesPerPixel
Expand Down

0 comments on commit 1162cbb

Please sign in to comment.