G-Node / nix

Neuroscience information exchange format
https://readthedocs.org/projects/nixio/
Other
66 stars 36 forks source link

Read bitfields as booleans #651

Closed achilleas-k closed 7 years ago

achilleas-k commented 7 years ago

Registers a converter in HDF5 for reading H5T_STD_B8LE, the old boolean type, found in files. Notice that the converter doesn't really do anything. I suspect it might be implicitly casting data to the destination type though I haven't found a definitive description in the HDF5 documentation that explains this.

If you think it's better that we define an explicit conversion path, for instance if the current method is simply exploiting behaviour that is not guaranteed, I'll do it and push to this PR.