Skip to content

Commit

Permalink
np.product is deprecated (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller authored and modelonrobinandersson committed Apr 25, 2024
1 parent c1f31da commit e5270d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -2491,7 +2491,7 @@ def convert_char_array(self, data):
data[data == ""] = " "

if dtype.kind == "U":
tmp = np.ndarray(shape=(), dtype=(dtype.str[:2] + str(np.product(dims))), buffer=data)
tmp = np.ndarray(shape=(), dtype=(dtype.str[:2] + str(np.prod(dims))), buffer=data)
buf = tmp.item().encode('latin-1')
data = np.ndarray(shape=dims, dtype="S1", buffer=buf)

Expand Down

0 comments on commit e5270d6

Please sign in to comment.