-
Notifications
You must be signed in to change notification settings - Fork 57
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
fixes #545 - units type AXISUNITS #549
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,8 +69,27 @@ | |
<xs:enumeration value="NX_TEMPERATURE"><xs:annotation><xs:documentation>example: K</xs:documentation></xs:annotation></xs:enumeration> | ||
<xs:enumeration value="NX_TIME"><xs:annotation><xs:documentation>example: s</xs:documentation></xs:annotation></xs:enumeration> | ||
<xs:enumeration value="NX_TIME_OF_FLIGHT"><xs:annotation><xs:documentation>(alias to NX_TIME) example: s</xs:documentation></xs:annotation></xs:enumeration> | ||
<xs:enumeration value="NX_VOLTAGE"><xs:annotation><xs:documentation>example: V</xs:documentation></xs:annotation></xs:enumeration> | ||
<xs:enumeration value="NX_VOLUME"><xs:annotation><xs:documentation>example: m3</xs:documentation></xs:annotation></xs:enumeration> | ||
<xs:enumeration value="NX_VOLTAGE"><xs:annotation><xs:documentation>example: V</xs:documentation></xs:annotation></xs:enumeration> | ||
<xs:enumeration value="NX_TRANSFORMATION"> | ||
<xs:annotation> | ||
<xs:documentation> | ||
could be any of these: ``NX_LENGTH``, ``NX_ANGLE``, or ``NX_UNITLESS`` | ||
|
||
There will be one or more transformations defined by one or more fields | ||
for each transformation. The units type ``NX_TRANSFORMATION`` designates the | ||
particular axis generating a transformation (e.g. a rotation axis or a translation | ||
axis or a general axis). ``NX_TRANSFORMATION`` designates the | ||
units will be appropriate to the type of transformation, | ||
indicated in the :ref:`NXtransformations` base class | ||
by the ``transformation_type`` value: | ||
|
||
* ``NX_LENGTH`` for ``translation`` | ||
* ``NX_ANGLE`` for ``rotation`` | ||
* ``NX_UNITLESS`` for axes for which no transformation type is specified. | ||
</xs:documentation> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This definition should be applied as a union, similar to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. BUT, the That, in itself using only the existing schema, is worth exploring in its own branch. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That branch is off this PR, not master |
||
</xs:annotation> | ||
</xs:enumeration> | ||
<xs:enumeration value="NX_VOLUME"><xs:annotation><xs:documentation>example: m3</xs:documentation></xs:annotation></xs:enumeration> | ||
<xs:enumeration value="NX_UNITLESS"><xs:annotation><xs:documentation>for fields that don't have a unit (e.g. hkl) so that they don't inherit the wrong units (NOTE: not the same as NX_DIMENSIONLESS)</xs:documentation></xs:annotation></xs:enumeration> | ||
<xs:enumeration value="NX_WAVELENGTH"><xs:annotation><xs:documentation>example: angstrom</xs:documentation></xs:annotation></xs:enumeration> | ||
<xs:enumeration value="NX_WAVENUMBER"><xs:annotation><xs:documentation>units for Q, example: angstrom-1 or nm-1</xs:documentation></xs:annotation></xs:enumeration> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AXISNAME
should not be changed here