From 4162811a18c5fa4ef0d8a37c6a373edbcc021ec2 Mon Sep 17 00:00:00 2001 From: mattjala <124107509+mattjala@users.noreply.github.com> Date: Tue, 26 Mar 2024 14:31:51 -0500 Subject: [PATCH] Fix incorrect dset size for large dsets on Windows (#175) --- 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 97439bb..7f8038b 100644 --- a/h5pyd/_hl/dataset.py +++ b/h5pyd/_hl/dataset.py @@ -564,7 +564,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):