strip_units#

mufasa.visualization.spec_viz.strip_units(lim)[source]#

Helper function to strip units from a limit tuple if it contains Quantity.

Parameters:

lim (tuple or None) – A tuple of limits (min, max) which may contain Quantity instances with units.

Returns:

A tuple with units stripped, containing only numeric values.

Return type:

tuple