QuantityAttributeMixin¶
-
class
lsst.validate.base.QuantityAttributeMixin[source]¶ Bases:
objectMixin 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_unitUnits as a LaTeX string, wrapped in $.quantityValue of the datum ( astropy.units.Quantity,str,bool,None).unitRead-only astropy.units.Unitof thequantity.unit_strRead-only astropy.units.Unit-compatiblestrindicating 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.Unitof thequantity.
-
unit_str¶ Read-only
astropy.units.Unit-compatiblestrindicating units ofquantity.
-