H5T_BITFIELD: This class is used to represent the Bool type. Such a type must be build using a H5T_NATIVE_B8 datatype, followed by a HDF5 H5Tset_precision call to set its precision to be just 1 bit.
@tamasgal I'm considering requiring the precision to be set to 1 to interpret the value as a Bool. Rather I think we should consider mapping H5T_NATIVE_B8 to a UInt8.
https://github.com/JuliaIO/HDF5.jl/pull/540 mapped
H5T_NATIVE_B8
toBool
. However, this seems be an error. ABool
should bit aH5T_BITFIELD
with a precision of1
as described by PyTables.h5py chooses to read the class of
H5T_BITFIELD
as unsigned integers: https://github.com/h5py/h5py/pull/1889@tamasgal I'm considering requiring the precision to be set to
1
to interpret the value as aBool
. Rather I think we should consider mappingH5T_NATIVE_B8
to aUInt8
.