taurus.core.units

This module provides a pint unit registry instance (UR) to be used by all taurus objects. It also provides the Quantity factory from that registry (also aliased as Q_).

Classes

Q_

alias of pint.quantity.build_quantity_class.<locals>.Quantity

class Quantity(value: str, units: Optional[UnitLike] = None)[source]
class Quantity(value: Sequence, units: Optional[UnitLike] = None)
class Quantity(value: pint.quantity.Quantity[pint.quantity.Magnitude], units: Optional[UnitLike] = None)
class Quantity(value: pint.quantity.Magnitude, units: Optional[UnitLike] = None)

(more info)

Variables

UR