get_quantity_str
get_quantity_str(
quant_value: str | bytes | pint.registry.Quantity | pint.facets.plain.unit.PlainUnit | None[str, <class ’bytes, Quantity, PlainUnit, None] ,
)-> ‘str | None’
Ensure a unit/quantity is valid and return its string representation.
Returns None for a null input, including the empty string.
If it is not valid raise a UnitError.
Parameters
| Parameter | Description |
|---|---|
| quant_value | A input specifying a quantity. |