SpecificTypeQuantity¶
-
class
astropy.units.quantity.
SpecificTypeQuantity
[source]¶ Bases:
astropy.units.quantity.Quantity
Superclass for Quantities of specific physical type.
Subclasses of these work just like
Quantity
, except that they are for specific physical types (and may have methods that are only appropriate for that type). Astropy examples areAngle
andDistance
At a minimum, subclasses should set
_equivalent_unit
to the unit associated with the physical type.