Public Member Functions | |
| Box | bbox (self) |
| None | register (cls) |
| dict | as_dict (self) |
Static Public Member Functions | |
| ScarletBlendBaseData | from_dict (dict data, DTypeLike dtype=np.float32) |
Static Public Attributes | |
| dict | blend_registry = {} |
| dict | metadata = None |
Base data for a scarlet Blend data.
Attributes
----------
blend_registry :
A registry of all known blend types used for deserialization.
blend_type :
The type of blend being stored.
metadata :
Metadata associated with the blend.
version :
The schema version of the exact data class.
| dict lsst.scarlet.lite.io.blend_base.ScarletBlendBaseData.as_dict | ( | self | ) |
Return the object encoded into a dict for JSON serialization
Returns
-------
result :
The object encoded as a JSON compatible dict
Reimplemented in lsst.scarlet.lite.io.blend.ScarletBlendData, and lsst.scarlet.lite.io.hierarchical_blend.HierarchicalBlendData.
| Box lsst.scarlet.lite.io.blend_base.ScarletBlendBaseData.bbox | ( | self | ) |
The bounding box of the blend
Reimplemented in lsst.scarlet.lite.io.blend.ScarletBlendData, and lsst.scarlet.lite.io.hierarchical_blend.HierarchicalBlendData.
|
static |
Reconstruct `ScarletBlendBaseData` from JSON compatible dict.
Parameters
----------
data :
Dictionary representation of the object
dtype :
Datatype of the resulting model.
Returns
-------
result :
The reconstructed object
Reimplemented in lsst.scarlet.lite.io.blend.ScarletBlendData, and lsst.scarlet.lite.io.hierarchical_blend.HierarchicalBlendData.
| None lsst.scarlet.lite.io.blend_base.ScarletBlendBaseData.register | ( | cls | ) |
Register a new Blend type