QuantityAttributeMixin¶
-
class
lsst.validate.base.
QuantityAttributeMixin
[source]¶ Bases:
object
Mixin with common attributes for classes that wrap an
astropy.units.Quantity
.Subclasses must have a self._quantity attribute that is an
astropy.units.Quantity
,str
,bool
, orNone
(only numeric values are astropy quantities).Attributes Summary
latex_unit
Units as a LaTeX string, wrapped in $
.quantity
Value of the datum ( astropy.units.Quantity
,str
,bool
,None
).unit
Read-only astropy.units.Unit
of thequantity
.unit_str
Read-only astropy.units.Unit
-compatiblestr
indicating units ofquantity
.Attributes Documentation
-
latex_unit
¶ Units as a LaTeX string, wrapped in
$
.
-
quantity
¶ Value of the datum (
astropy.units.Quantity
,str
,bool
,None
).
-
unit
¶ Read-only
astropy.units.Unit
of thequantity
.
-
unit_str
¶ Read-only
astropy.units.Unit
-compatiblestr
indicating units ofquantity
.
-