Unit
Quick Facts
Inheritance
Quick Start
# Boilerplate Example
obj = Unit()
result = obj.GetShift()Method Index
| Method | Returns | Summary |
|---|---|---|
__init__ | None | — |
GetShift | float | Gets the constant offset to be applied on convertion |
GetScale | float | Gets the scalar factor for conversion. |
GetUnitGroup | str | Gets the unit group for this unit |
IsDefault | bool | — |
Lifecycle
__init__
def __init__() -> NoneReturns: None
Query Methods
GetShift
def GetShift() -> floatGets the constant offset to be applied on convertion
Returns: float — constant shift value as float
GetScale
def GetScale() -> floatGets the scalar factor for conversion.
Returns: float — returns the scalar as float
GetUnitGroup
def GetUnitGroup() -> strGets the unit group for this unit
Returns: str — returns the unit group
IsDefault
def IsDefault() -> boolReturns: bool
Version Notes
This class is documented as of release R2025.2.4.
Was this page helpful?