riverine.units#
Attributes#
Functions#
|
Convenient constructor for units, eg, |
Module Contents#
- riverine.units.Q_(qty: int | str | decimal.Decimal | float, unit: str | pint.Unit | pint.facets.plain.PlainUnit | pint.Quantity | None = None) DecimalQuantity[source]#
Convenient constructor for units, eg,
Q_(5.0, 'nM'). Ensures that the quantity is a Decimal.