Skip to content

Commit

Permalink
changed np.product() call to np.prod() to avoid deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
timbernat committed Apr 25, 2024
1 parent ae73b32 commit 5945f3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polymerist/maths/lattices/integer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5945f3c

Please sign in to comment.