get_factor_and_unit

function of dascore.units source

get_factor_and_unit(
    value: str | pint.registry.Quantity | pint.registry.Unit | numpy.datetime64 | numpy.timedelta64 | None[str, Quantity, Unit, datetime64, timedelta64, None] ,
    simplify: bool = False,
)-> ‘tuple[float, str | None]’

Convert a mixed unit/scaling factor to scale_factor and unit str.