pyunitwizard.get_form#
- pyunitwizard.get_form(quantity_or_unit, raise_exception=True)[source]#
Returns the form of a quantity as a string.
- Parameters:
quantity_or_unit (QuantityOrUnit) – A quanitity or a unit
raise_exception (bool, default=True) – Whether to raise NotImplementedFormError if the form is not found.
- Returns:
The form of the quantity
- Return type:
{“string”, “pint”, “openmm.unit”, “unyt”, None}