class documentation

Base class for all autogenerated units, see Unit.

Class Method from_symbol Return the unique unit corresponding to given symbol.
Class Method from_ua_unit_id Return the unique unit corresponding to given OPC UA unit ID.
Method __repr__ Descriptive string representation of the Unit.
Method __str__ Symbol of the Unit.
Property symbol Symbol of the Unit, e.g. cm for centimeters.
Property ua_eu_information Return the OPC UA EU information.
Property ua_unit_id OPC UA Unit ID for the unit.
@classmethod
def from_symbol(cls, symbol: str) -> Self:

Return the unique unit corresponding to given symbol.

Raises
ValueErrorif the symbol is not valid or ambiguous.
@classmethod
def from_ua_unit_id(cls, ua_unit_id: int) -> Self:

Return the unique unit corresponding to given OPC UA unit ID.

def __repr__(self) -> str:

Descriptive string representation of the Unit.

def __str__(self) -> str:

Symbol of the Unit.

@property
symbol: str =

Symbol of the Unit, e.g. cm for centimeters.

@property
ua_eu_information: ua.EUInformation =

Return the OPC UA EU information.

@property
ua_unit_id: int =

OPC UA Unit ID for the unit.