Skip to content

NXtransformations has invalid unit: AXISUNITS #545

@prjemian

Description

@prjemian

The travis-ci build server reports an error with NXtransformations

NXDL_Invalid: base_classes/NXtransformations.nxdl.xml : Element '{http://definition.nexusformat.org/nxdl/3.1}field', attribute 'units': [facet 'enumeration'] The value 'AXISUNITS' is not an element of the set {'NX_ANGLE', 'NX_ANY', 'NX_AREA', 'NX_CROSS_SECTION', 'NX_CHARGE', 'NX_CURRENT', 'NX_DIMENSIONLESS', 'NX_EMITTANCE', 'NX_ENERGY', 'NX_FLUX', 'NX_FREQUENCY', 'NX_LENGTH', 'NX_MASS', 'NX_MASS_DENSITY', 'NX_MOLECULAR_WEIGHT', 'NX_PER_AREA', 'NX_PER_LENGTH', 'NX_PERIOD', 'NX_POWER', 'NX_PRESSURE', 'NX_PULSES', 'NX_SCATTERING_LENGTH_DENSITY', 'NX_SOLID_ANGLE', 'NX_TEMPERATURE', 'NX_TIME', 'NX_TIME_OF_FLIGHT', 'NX_VOLTAGE', 'NX_VOLUME', 'NX_UNITLESS', 'NX_WAVELENGTH', 'NX_WAVENUMBER'}., line 104

A comment in the NXDL file says:

nxdl.xsd rules do not allow us to show this as a variable name
- we'll use AXISNAME in ALL CAPS for consistency with the
use in NXDATA.  We'll use ``AXISUNITS`` for the units appropriate
to the type of axis.

NXDL files must adhere to the rules of nxdl.xsd. As stated, there is no unit type that satisfies the intent in this NXDL class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions