UnitsUnion (hwx.inspire.Attributes)#

class UnitsUnion(getUnits, *args, **kwds)#

Bases: CompositeAttribute

Group of mutually exclusive attributes where only one is active at at time.

The active attribute is controlled by units.

Method Table#

Name

Description

getActiveKey (self, obj)

Returns the active attribute.

getActiveKey(obj)#

Returns the active attribute.