Bases: astropy.units.core.UnitBase
The base class of units that have a name.
| Parameters : | st : str or list of str
register : boolean, optional
doc : str, optional
format : dict, optional
|
|---|---|
| Raises : | ValueError :
ValueError :
|
Attributes Summary
| aliases | Returns the alias (long) names for this unit. |
| name | Returns the canonical (short) name associated with this unit. |
| names | Returns all of the names associated with this unit. |
Methods Summary
| get_format_name(format) | Get a name for this unit that is specific to a particular format. |
Attributes Documentation
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
|