From 7348bf10fe69c514230af66bd6932978625f9562 Mon Sep 17 00:00:00 2001 From: Matthew Larson Date: Tue, 26 Mar 2024 10:33:30 -0500 Subject: [PATCH] Fix incorrect dset size for large dsets on Windows --- h5pyd/_hl/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h5pyd/_hl/dataset.py b/h5pyd/_hl/dataset.py index 332a80f..60cf61b 100644 --- a/h5pyd/_hl/dataset.py +++ b/h5pyd/_hl/dataset.py @@ -567,7 +567,7 @@ def size(self): """Numpy-style attribute giving the total dataset size""" if self._shape is None: return None - return numpy.prod(self._shape).item() + return numpy.prod(self._shape, dtype=np.int64).item() @property def nbytes(self):