Skip to content

Commit

Permalink
Move np.product to np.prod
Browse files Browse the repository at this point in the history
  • Loading branch information
arm61 committed Aug 23, 2024
1 parent 118bfba commit 0c10cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kinisi/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0c10cef

Please sign in to comment.