HDFGroup / h5pyd

h5py distributed - Python client library for HDF Rest API
Other
109 stars 39 forks source link

Fix incorrect dset size for large dsets on Windows #175

Closed mattjala closed 3 months ago

mattjala commented 3 months ago

TestVeryLargeArray creates a dataset with 2^31 elements and checks the returned shape of the dataset using np.prod. This works fine on Linux/OSX but runs into an issue on Windows because the default numpy integer type on Windows is 32-bit. This explicitly sets this operation to use a 64-bit int type.