nexusformat / definitions

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

can NXlog/value be used to record strings or boolean readouts ? #1432

Open jkotan opened 3 weeks ago

jkotan commented 3 weeks ago

It is convenient to record string-like status of the hardware or bool-like hardware flags. Ideal for those purpose would be NXlog/value. However, in the documentation NXlog/value is of NX_NUMBER type. It would be good to extend it by NX_BOOLEAN and NX_CHAR. Especially that in the documention it is written that and NeXus field which changes during the experiment can be replaced as an NXlog group.

prjemian commented 3 weeks ago

The intent of NXlog (as it is described) is to log numerical data. Expanding to non-numerical types could have consequences for software which expects only numbers.