from_lal_unit#
- gwpy.utils.lal.from_lal_unit(lunit: Unit) Unit[source]#
Convert a LALUnit` into a
Unit.- Parameters:
- lunit
lal.Unit The input unit.
- lunit
- Returns:
- unit
Unit The Astropy representation of the input.
- unit
- Raises:
TypeErrorIf
lunitcannot be converted tolal.Unit.ValueErrorIf Astropy doesn’t understand the base units for the input.