dachs.readers.assert_unit

dachs.readers.assert_unit(value, default_unit: str) str[source]

adds a default unit string for interpretation by pint if the value is not in string format yet (and therefore does not yet have a unit)