Skip to content

Errors with NX_BOOLEAN for h5py #34

@domna

Description

@domna

I'm using h5py for storing a file in NeXus format and I'm having problems with values stored in NX_BOOLEAN type.
h5py stores boolean values as a H5T_ENUM according to their FAQ, which creates an error for me when validating a file:

definition=NXmpes.nxdl.xml message="Data type mismatch, expected NX_BOOLEAN, got H5T_ENUM {
      H5T_STD_I8LE;
      "FALSE"            0;
      "TRUE"             1;
   }" 
... nxdlPath=/NXentry/NXprocess/NXcalibration/applied 
... sev=error dataPath=/entry/process/energy_calibration/applied dataFile=MoTe.mpes.nxs

It would be really nice if nxvalidate would also accept this exact enum as a form of NX_BOOLEAN.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions