Source code for dachs.dachsvalidators
import logging
from dachs import ureg
[docs]
def isQuantity(instance, attribute, value):
assert isinstance(value, ureg.Quantity), logging.error(
f"{attribute=} should be specified as a quantity with a unit"
)