from_lal_unit#

gwpy.utils.lal.from_lal_unit(lunit: Unit) Unit[source]#

Convert a LALUnit` into a Unit.

Parameters:
lunitlal.Unit

The input unit.

Returns:
unitUnit

The Astropy representation of the input.

Raises:
TypeError

If lunit cannot be converted to lal.Unit.

ValueError

If Astropy doesn’t understand the base units for the input.