JuliaIO / HDF5.jl

Save and load data in the HDF5 file format from Julia
https://juliaio.github.io/HDF5.jl
MIT License
390 stars 142 forks source link

boolean arrays incompatible with h5py #826

Open ilia-kats opened 3 years ago

ilia-kats commented 3 years ago

HDF5.jl reads boolean arrays written by h5py as Int8 arrays. Apparently, h5py stores boolean arrays as HDF5 enums with names TRUE and FALSE by default. h5py's names can be changed at runtime](https://docs.h5py.org/en/latest/config.html), and h5py reads boolean arrays written using a different config as int8 arrays also.

The more serious issue is that boolean arrays as written by HDF5.jl are completely unknown to h5py and trigger an exception: TypeError: No NumPy equivalent for TypeBitfieldID exists.

nhz2 commented 1 year ago

I think the issue of h5py not being able to read boolean arrays written by HDF5.jl was solved by https://github.com/h5py/h5py/pull/1889