nexusformat / definitions

Definitions of the NeXus Standard File Structure and Contents
https://manual.nexusformat.org/
Other
26 stars 56 forks source link

regexp in enumerations #1234

Open sanbrock opened 1 year ago

sanbrock commented 1 year ago

NXentry/thumbnail/type-attribute is defined with the “Obligatory value: image/”. Does it mean that it always has to be literaly "image/” or it only means that its actual value shall start with "image/“?
Is it really an enumeration?
Shall we enable a regexp as enumeration?

sanbrock commented 1 year ago

As discussed on the Telco today:
currently - enums only allow exact match
Note that the current implementation is not as intended. https://github.com/nexusformat/definitions/blob/e9f7406b252a4b209bb50da830e2d27c7f280c9c/base_classes/NXentry.nxdl.xml#L213-L219)

future: maybe the use of assert or something else

prj: edited cross-references