-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
Description
test_mask_reading_read_only:
versioned-hdf5/tests/test_api.py
Lines 2117 to 2119 in a037fe0
| def test_mask_reading_read_only(tmp_path): | |
| # Reading a virtual dataset with a mask does not work in HDF5, so make | |
| # sure it still works for versioned datasets. |
- passes vs. hdf5 1.10.7~1.10.10 from gh actions' ubuntu-latest image;
- passes vs. conda-forge hdf5 1.12;
- fails vs conda-forge hdf5 1.10.6.
h5py==3.8.0 in all cases.
Note that there is no hdf5-1.10.7~1.10.10 available in conda-forge to test an exact like-for-like against gh actions.
with h5py.File(filename, "r") as f:
vf = VersionedHDF5File(f)
sv = vf["r0"]
> b = sv["bar"][mask]
tests/test_api.py:2136:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
h5py/_objects.pyx:54: in h5py._objects.with_phil.wrapper
???
h5py/_objects.pyx:55: in h5py._objects.with_phil.wrapper
???
.pixi/envs/mindeps/lib/python3.9/site-packages/h5py/_hl/dataset.py:851: in __getitem__
self.id.read(mspace, fspace, arr, mtype, dxpl=self._dxpl)
h5py/_objects.pyx:54: in h5py._objects.with_phil.wrapper
???
h5py/_objects.pyx:55: in h5py._objects.with_phil.wrapper
???
h5py/h5d.pyx:240: in h5py.h5d.DatasetID.read
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E OSError: Can't read data (point selections not currently supported)
Reproducer
mamba create -n versioned-hdf5 hdf5=1.10.6 h5py=3.8.0 numpy=1.24 ndindex pytest pytest-env hypothesis packaging
mamba activate versioned-hdf5
pip install .
pytest -k test_mask_reading_read_only