Skip to content

Allow setting metadata field to None

Closes #16 (closed)

h5py doesn't seem to allow NoneType objects to be stored in HDF5 files: TypeError: Object dtype dtype('O') has no native HDF5 equivalent

The 'if' statement has been included in set_metadata as a work-around for this. As such, I've just edited get_metadata to return None if the requested metadata isn't present. An alternative might be to store an empty string or list in place of a None whenever requested. Let me know if you prefer this implementation.

Merge request reports