-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow NXdata dimension variables to contain a list of strings #945
Comments
This needs a branch and pull request since the NIAC has already approved. |
The Lines 515 to 525 in 01093ec
We could define a new data type that is a union of data types |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 @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".
partly fixes #940
The text was updated successfully, but these errors were encountered: