base

Utilities to work with base units.

Base units are units that are expressed only as power of SI units. For example, kg, m/s, ‘kg*m^2/s**2` are base units, but mg, km/h, ‘J’ or dB are not.

Non-base units are useful for human readability, but some operations are ill-defined when using them, especially for non-linear operations. It is strongly recommended to convert all values to base units as soon as possible to avoid ambiguities.

Functions

convert_to_base_units(-> tuple[M, None])

Convert values into base units.

is_base_quantity(value)

Check if the given value is expressed in base units.

is_in_base_units(units)

Check if the units is only expressed in terms of base SI units.