model.units

Units of measure that are used in solutions

Dimensions of SI units are re-used.

def map_to_unit( unit: unitsofmeasure.Unit, map: unitsofmeasure.UnitMap = <unitsofmeasure.UnitMap object>):

Decorate functions or classes with units.

def set_unit( o: object, unit: unitsofmeasure.Unit, map: unitsofmeasure.UnitMap = <unitsofmeasure.UnitMap object>) -> None:

Set unit of object in map.

def get_unit( o: object, map: unitsofmeasure.UnitMap = <unitsofmeasure.UnitMap object>) -> unitsofmeasure.Unit:

Get unit of object from map.