Skip to content

ENH: Changes made to Double Item and Double Item Definition

These changes relate to units:

DoubleItemDefinition

  1. Will only append units to its default string values iff its units are supported by its units system
  2. Will remove the units from a default value string iff its units are not supported by its units system
  3. Its static splitStringStartingDouble method now trims both the value and units strings it returns.
  4. Added a hasSupportedUnits method that returns true if the Definition's units are set and are supported by its units system.

DoubleItem

  1. Will only append units if its definition's units are supported by its units system and the input value string does not contains units
  2. Will remove units from an input value string if its definition's units are not supported by its units system

Removed all code in qtInputsItem that was working around Double Items with unsupported units

Merge request reports