Skip to content

Commit

Permalink
numpy.product deprecated 2
Browse files Browse the repository at this point in the history
  • Loading branch information
lranzani committed Nov 20, 2024
1 parent 5c12930 commit 7d6bea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auspex/data_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def open_dataset(self, groupname, datasetname):

filename = os.path.join(self.base_path,groupname,datasetname+'.dat')
assert os.path.exists(filename), "Could not find dataset. Is this the correct name?"
flat_shape = (np.product(meta['shape']),)
flat_shape = (np.prod(meta['shape']),)
mm = np.memmap(filename, dtype=meta['dtype'], mode='r', shape=flat_shape)
data = np.array(mm).reshape(tuple(meta['shape']))
del mm
Expand Down

0 comments on commit 7d6bea2

Please sign in to comment.