We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b79b28 commit 0c3ce8aCopy full SHA for 0c3ce8a
1 file changed
pytools/idfx_io.py
@@ -29,7 +29,7 @@ def __init__(self, fh, byteorder="little"):
29
dims = []
30
for dim in range(self.ndims):
31
dims.append(int.from_bytes(fh.read(INT_SIZE), byteorder))
32
- ntot = int(np.product(dims))
+ ntot = int(np.prod(dims))
33
raw = struct.unpack(str(ntot) + "d", fh.read(DOUBLE_SIZE * ntot))
34
self.array = np.asarray(raw).reshape(dims[::-1])
35
0 commit comments