Skip to content

Fix h5netcdf backend module detection and ros3 tests#11274

Merged
kmuehlbauer merged 10 commits intopydata:mainfrom
kmuehlbauer:h5netcdf-h5py-updates
Apr 8, 2026
Merged

Fix h5netcdf backend module detection and ros3 tests#11274
kmuehlbauer merged 10 commits intopydata:mainfrom
kmuehlbauer:h5netcdf-h5py-updates

Conversation

@kmuehlbauer
Copy link
Copy Markdown
Contributor

@kmuehlbauer kmuehlbauer commented Apr 1, 2026

This PR fixes two issues with upstream h5netcdf:

  • new ros3 endpoint, HDF5 version switch (HDF v2)
    This fixes breaking ROS3 tests, when using HDF2 >= 2. We currently do not check nightly h5netcdf, so this was missed here. It was discovered in h5netcdf tests, which is testing xarray nightly.
  • retrieve h5netcdf-backend module (h5py, h5pyd or pyfive) from backend variable
    This enables installation of xarray without h5py in the environment, as now the used module is discovered from h5netcdf backend variable.

@kmuehlbauer kmuehlbauer added the plan to merge Final call for comments label Apr 2, 2026
@kmuehlbauer kmuehlbauer merged commit 93e0a54 into pydata:main Apr 8, 2026
41 checks passed
@kmuehlbauer kmuehlbauer deleted the h5netcdf-h5py-updates branch April 8, 2026 17:08
maxrjones pushed a commit to maxrjones/xarray that referenced this pull request Apr 8, 2026
* use var._root._h5py to get h5py module in h5netcdf backend instead of importing it
* fix ros3 tests to use DANDI endpoint and include hdf5 version switch
* fix phony_dims for ros3 test
* fix import check for ros3 availability
* try using property to get around import issue
* add whats-new.rst entry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support pyfive as h5netcdf backend

1 participant