pyunitwizard.standardize#
- pyunitwizard.standardize(quantity_or_unit, to_form=None)[source]#
Concert a quantity or unit to standard units.
- Parameters:
quantity_or_unit (QuantityOrUnit) – The quantity or a unit that will be converted.
to_form (str, optional.) – The form to transform to
- Returns:
The quantity ot unit converted to standard units.
- Return type:
QuantityOrUnit
- Raises:
NoStandardsError – If no standard units were defined.