Inherits from
- OffsetUnit: enthought.units.smart_unit.OffsetUnit
Method summary
- __eq__(self, other)
- __init__(self, label, value, derivation, offset, valid)
- __str__(self)
- can_convert(self, new_unit)
- get_label(self)
- is_valid(self)
Inherited from base classes
Methods
- __eq__(self, other)
return true if self and other are the same
- __init__(self, label, value, derivation, offset, valid)
- __str__(self)
Returns the pretty units label if it exists.
- can_convert(self, new_unit)
If units.convert() fails to run then the two units systems specified are probably not consistent.
- get_label(self)
- is_valid(self)