Skip to content

Commit

Permalink
MNT nexusformat#1435 per NIAC2024
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Sep 30, 2024
1 parent 583de13 commit b26472d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
20 changes: 18 additions & 2 deletions nxdl.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -660,9 +660,25 @@
<xs:annotation>
<xs:documentation>
String describing the engineering units.
The string should be appropriate for the value
and should conform to the NeXus rules for units.
The string should be appropriate for the value.

* If a unit is not provided by the list of NeXus
unit categories, instead of providing a category,
the field statement can include an example of the
units directly.

* The example does not constrain the scale of the
units. For example, if the unit is ``eV/mm``, the
user could specify in a data file ``eV/cm``, or any
other unit that is convertible to the example given.

It is recommended that users and application developers
check if their units and their unit examples adhere to
the UDUNITS standard. [#]_

Conformance is not validated at this time.

.. [#] https://www.unidata.ucar.edu/software/udunits/
</xs:documentation>
</xs:annotation>
</xs:attribute>
Expand Down
2 changes: 2 additions & 0 deletions nxdlTypes.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

They should describe valid units consistent with
the manual section on NeXus units (based on UDUNITS).

Units are not validated by NeXus.
</xs:documentation>
</xs:annotation>
Expand Down Expand Up @@ -81,6 +82,7 @@
nxdl:NX_VOLUME
nxdl:NX_WAVELENGTH
nxdl:NX_WAVENUMBER
xs:string
" />
</xs:simpleType>

Expand Down

0 comments on commit b26472d

Please sign in to comment.