Skip to content

Commit 0c3ce8a

Browse files
committed
Update to numpy 2+
1 parent 0b79b28 commit 0c3ce8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pytools/idfx_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def __init__(self, fh, byteorder="little"):
2929
dims = []
3030
for dim in range(self.ndims):
3131
dims.append(int.from_bytes(fh.read(INT_SIZE), byteorder))
32-
ntot = int(np.product(dims))
32+
ntot = int(np.prod(dims))
3333
raw = struct.unpack(str(ntot) + "d", fh.read(DOUBLE_SIZE * ntot))
3434
self.array = np.asarray(raw).reshape(dims[::-1])
3535

0 commit comments

Comments
 (0)