def_physical_type

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

Adds a new physical unit mapping.

Parameters
unitUnitBase instance

The unit to map from.

namestr

The physical name of the unit.