Bases: astropy.units.UnitBase
The base class of units that have a name.
Parameters: | st : str, list of str, 2-tuple
namespace : dict, optional
doc : str, optional
format : dict, optional
|
---|---|
Raises: | ValueError
ValueError
|
Attributes Summary
aliases | Returns the alias (long) names for this unit. |
long_names | Returns all of the long names associated with this unit. |
name | Returns the canonical (short) name associated with this unit. |
names | Returns all of the names associated with this unit. |
short_names | Returns all of the short names associated with this unit. |
Methods Summary
deregister([remove_from_namespace]) | |
get_format_name(format) | Get a name for this unit that is specific to a particular format. |
register([add_to_namespace]) |
Attributes Documentation
Returns the alias (long) names for this unit.
Returns all of the long names associated with this unit.
Returns the canonical (short) name associated with this unit.
Returns all of the names associated with this unit.
Returns all of the short names associated with this unit.
Methods Documentation
Get a name for this unit that is specific to a particular format.
Uses the dictionary passed into the format kwarg in the constructor.
Parameters: | format : str
|
---|---|
Returns: | name : str
|