You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NXdata groups contain a multidimensional data array with the @axes attribute pointing to fields within the group that hold lists of values to be used as labels for the corresponding dimensions of the dataset. Currently, the values of these "variable" datasets are restricted to NX_NUMBER. I propose that this be relaxed to allow a list of strings, with the number of list items being equal to the size of the corresponding dimension of the main data array (the one that https://github.com/signal points to).
This proposal is motivated by Dectris, who would like to present data recorded by some of their detectors in terms of "channels". They would like one axis of the dataset to be labelled as "channel" and to label slices of the data array with strings like "low threshold", "high threshold" and "difference".
Presented in nexusformat/definitions#945
Partly fixes nexusformat/definitions#940
The text was updated successfully, but these errors were encountered:
As a note, I cannot find any existing NXDL file that contains a choice of data types. However, the NX_TRANSFORMATION data type provides this capability (as described in its documentation):
could be any of these: ``NX_LENGTH``, ``NX_ANGLE``, or ``NX_UNITLESS``
One way to allow NXdata dimension variables to contain a list of strings, we could follow the existing pattern of NX_TRANSFORMATION.
NXdata groups contain a multidimensional data array with the @axes attribute pointing to fields within the group that hold lists of values to be used as labels for the corresponding dimensions of the dataset. Currently, the values of these "variable" datasets are restricted to NX_NUMBER. I propose that this be relaxed to allow a list of strings, with the number of list items being equal to the size of the corresponding dimension of the main data array (the one that https://github.com/signal points to).
This proposal is motivated by Dectris, who would like to present data recorded by some of their detectors in terms of "channels". They would like one axis of the dataset to be labelled as "channel" and to label slices of the data array with strings like "low threshold", "high threshold" and "difference".
Presented in nexusformat/definitions#945
Partly fixes nexusformat/definitions#940
The text was updated successfully, but these errors were encountered: