pyunitwizard.get_form

pyunitwizard.get_form(quantity_or_unit: QuantityOrUnit) str[source]

Returns the form of a quantity as a string.

Parameters

quantity_or_unit (QuantityOrUnit) – A quanitity or a unit

Returns

The form of the quantity

Return type

{“string”, “pint”, “openmm.unit”, “unyt”}