From 5b6dccd50b0be3ae859d1f3f0326dca0b1b97de8 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..3266b66 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=numpy.int64).item() @property def nbytes(self):