-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Support pyfive as h5netcdf backend #11243
Copy link
Copy link
Open
Labels
Description
What is your issue?
Recently, a pure Python HDF5 file reader "pyfive" has become available as a backend for h5netcdf, making h5py optional.
However, xarray still needs h5py (and seems to assume it is available if h5netcdf is installed).
xarray uses h5py in only a few places for checking dtypes.
The pyfive equivalent function for this is pyfive.h5t.check_dtype (replacing h5py.check_dtype).
The following function is also used;
h5py.special_dtype(vlen=str)which does not have a pyfive equivalent, but will always evaluate to;
np.dtype('O', metadata={'vlen': str})Reactions are currently unavailable