From 0c10cef2455c1f97f6ae6d5e0df271e31484b548 Mon Sep 17 00:00:00 2001 From: "Andrew R. McCluskey" Date: Fri, 23 Aug 2024 09:08:19 +0100 Subject: [PATCH] Move np.product to np.prod --- kinisi/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kinisi/parser.py b/kinisi/parser.py index 9909d71..f480434 100644 --- a/kinisi/parser.py +++ b/kinisi/parser.py @@ -190,7 +190,7 @@ def get_disps(self, disp_mem = 0 itemsize = drift_corrected.itemsize for i, time_interval in enumerate(iterator): - disp_mem += np.product(drift_corrected[self.indices, time_interval::].shape) * itemsize + disp_mem += np.prod(drift_corrected[self.indices, time_interval::].shape) * itemsize disp_mem += (len(self.indices) * drift_corrected.shape[-1]) * itemsize disp_mem *= 1e-9 if disp_mem > self.memory_limit: