resqpy.weights_and_measures.get_conversion_factors

resqpy.weights_and_measures.get_conversion_factors(uom)[source]

Return base unit and conversion factors (A, B, C, D) for a given uom.

The formula “y=(A + Bx)/(C + Dx)” where “y” represents a value in the base unit.

Returns

3-tuple of (base_unit, dimension, factors). Factors is a 4-tuple of conversion factors

Raises

ValueError if either uom is not a valid resqml uom