resqpy.weights_and_measures.valid_uoms
- resqpy.weights_and_measures.valid_uoms(quantity=None, return_attributes=False)
Return set of valid RESQML units of measure.
- Parameters:
quantity (
str) – If given, filter to uoms supported by this quanitity.return_attributes (
bool) – If True, return a dict of all uoms and their attributes, such as the full name and dimension. Else, simply return the set of valid uoms.
- Returns:
set or dict