assert_dtype_compatible_with_units

function of dascore.units source

assert_dtype_compatible_with_units(
    dtype ,
    quantity ,
)-> ‘Quantity’

Return quantity if it is compatible with dtype.

If not raise UnitError.