From e5270d6a02eb334c8801cf4952399ed62ca476b5 Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Fri, 29 Sep 2023 10:28:26 +0200 Subject: [PATCH] np.product is deprecated (#198) --- src/common/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/io.py b/src/common/io.py index 4263eec8..c0eb2538 100644 --- a/src/common/io.py +++ b/src/common/io.py @@ -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)