Skip to content

ENH: Handling Expressions with Units

ValueItems will now test units when assigning expressions. If the expression has units and they are not convertible to the item's units, the assignment will now fail.

Also if a double item's units are different from its expression, the expression's evaluated value is converted to those of the item when calling its value methods.

See smtk/attribute/testing/c++/unitInfixExpressionEvaluator and data/attribute/DoubleItemExample.sbt for examples.

Also added missing data members in ReferenceItemDefinition that should have been copied in the Item's copy method as well as adding more debug information to help track down the reason for the intermittent failures related to the clone resources test.

Merge request reports