Unscaled#
- class astropy.units.format.Unscaled(*args, **kwargs)[source]#
Bases:
GenericDeprecated since version 5.3: The Unscaled class is deprecated and may be removed in a future version. Use Generic instead.
A format that doesn’t display the scale part of the unit, other than that, it is identical to the
Genericformat.This is used in some error messages where the scale is irrelevant.
Deprecated since version 5.3: The Unscaled class is deprecated and may be removed in a future version. Use Generic instead.
Attributes Summary
Methods Summary
to_string(unit)Convert a unit to its string representation.
Attributes Documentation
- name = 'unscaled'#
Methods Documentation
- classmethod to_string(unit)[source]#
Convert a unit to its string representation.
Implementation for
to_string.- Parameters:
- unit
UnitBase The unit to convert.
- fraction{False|True|’inline’|’multiline’}, optional
Options are as follows:
- unit
- Raises:
ValueErrorIf
fractionis not recognized.