units

Functions

is_quantity(value)

Returns True if the value is a quantity, False otherwise.

is_scalar_quantity(value)

Returns True if the value is a scalar quantity, False otherwise.

Classes

Quantity()

Unit(*args, **kwargs)

Exceptions

UndefinedUnitError(unit_names)

Raised when the units are not defined in the unit registry.

DimensionalityError(units1, units2[, dim1, ...])

Raised when trying to convert between incompatible units.

InvalidDimensionalityError

Raised when a value has an invalid dimensionality.

Modules

base

Utilities to work with base units.