def_physical_type¶
-
astropy.units.
def_physical_type
(unit, name)[source]¶ Add a mapping between a unit and the corresponding physical type(s).
If a physical type already exists for a unit, add new physical type names so long as those names are not already in use for other physical types.
- Parameters
- Raises
ValueError
If a physical type name is already in use for another unit, or if attempting to name a unit as
"unknown"
.