From 7d6bea2df6c49f9bd5297585fe05d0ef82dea561 Mon Sep 17 00:00:00 2001 From: lranzani Date: Wed, 20 Nov 2024 14:46:31 -0500 Subject: [PATCH] numpy.product deprecated 2 --- src/auspex/data_format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auspex/data_format.py b/src/auspex/data_format.py index 306c19e6..c632a3b9 100644 --- a/src/auspex/data_format.py +++ b/src/auspex/data_format.py @@ -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