Datum¶
-
class
lsst.validate.drp.base.
Datum
(value, units, label=None, description=None)[source]¶ Bases:
lsst.validate.drp.base.JsonSerializationMixin
A value annotated with units, a plot label and description.
Parameters: value : str, int, float or 1-D iterable.
Value of the datum.
units : str
Astropy-compatible units string. See http://docs.astropy.org/en/stable/units/
label : str, optional
Label suitable for plot axes (without units).
description : str, optional
Extended description.
Attributes Summary
astropy_units
Astropy unit object. description
Extended description of Datum. json
Datum as a dict compatible with overall Job JSON schema. label
Label for plotting (without units). latex_units
Units as a LateX string, wrapped in $
.quantity
Datum as an astropy Quantity. units
Astropy-compatible unit string. value
Value of the datum (str, int, float or 1-D iterable.). Attributes Documentation
-
astropy_units
¶ Astropy unit object.
-
description
¶ Extended description of Datum.
-
json
¶ Datum as a dict compatible with overall Job JSON schema.
-
label
¶ Label for plotting (without units).
-
latex_units
¶ Units as a LateX string, wrapped in
$
.
-
quantity
¶ Datum as an astropy Quantity.
-
units
¶ Astropy-compatible unit string.
-
value
¶ Value of the datum (str, int, float or 1-D iterable.).
-