def_physical_type

astropy.units.def_physical_type(unit, name)[source] [edit on github]

Adds a new physical unit mapping.

Parameters:
unit : UnitBase instance

The unit to map from.

name : str

The physical name of the unit.