coerce_unit#

jdaviz.core.unit_conversion_utils.coerce_unit(quantity)[source]#

coerce the unit on a quantity to have a single length unit (will take the first length unit with a power of 1) and to strip any constants from the units.