From 5945f3c0c0e74ccd766fa2d18f138a69f91d1bbb Mon Sep 17 00:00:00 2001 From: Timotej Bernat Date: Wed, 24 Apr 2024 18:07:32 -0600 Subject: [PATCH] changed np.product() call to np.prod() to avoid deprecation warning --- polymerist/maths/lattices/integer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymerist/maths/lattices/integer.py b/polymerist/maths/lattices/integer.py index 0eb29e1..ee81a18 100644 --- a/polymerist/maths/lattices/integer.py +++ b/polymerist/maths/lattices/integer.py @@ -40,7 +40,7 @@ def n_dims(self) -> int: # referred to as "N" in typehints @property def capacity(self) -> int: # referred to as "M" in typehints '''The maximum number of points that the lattice could contains''' - return np.product(self.sidelens) + return np.prod(self.sidelens) @property def n_points(self) -> int: