Skip to content

[Bug]: Info message for new values in open enumerations #701

@CMM02

Description

@CMM02

Contact Details

magnus.meier@helmholtz-berlin.de

What happened?

When validating a NeXus file with validate_nexus, which has a new item for an enumeration and the @custom=True attribute is set, the follow message is output (example: energy_scan_mode in NXenergydispersion):

The value at /entry/instrument/electronanalyzer/dispersion/energy_scan_mode does not match with the enumerated items from the open enumeration: ['fixed_analyzer_transmission', 'fixed_retardation_ratio', 'fixed_energy', 'snapshot', 'dither'].

The log should only appear, when @custom=True is not set. Ideally if this is missing, it should state that this needs to be added for custom values.

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions