Skip to content

Commit

Permalink
Merge pull request #86 from ImagingDataCommons/cg/bugfix/np-prod
Browse files Browse the repository at this point in the history
Update deprecated numpy method calls
  • Loading branch information
pieper authored Sep 5, 2023
2 parents e83fe98 + 1162cbb commit 4063e75
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 4063e75

Please sign in to comment.