lsst.scarlet.lite ge1c02a5578+b0138be388
 
Loading...
Searching...
No Matches
lsst.scarlet.lite.io.blend_base.ScarletBlendBaseData Class Reference
Inheritance diagram for lsst.scarlet.lite.io.blend_base.ScarletBlendBaseData:
lsst.scarlet.lite.io.blend.ScarletBlendData lsst.scarlet.lite.io.hierarchical_blend.HierarchicalBlendData

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
 

Detailed Description

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.

Member Function Documentation

◆ as_dict()

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.

◆ bbox()

Box lsst.scarlet.lite.io.blend_base.ScarletBlendBaseData.bbox ( self)

◆ from_dict()

ScarletBlendBaseData lsst.scarlet.lite.io.blend_base.ScarletBlendBaseData.from_dict ( dict data,
DTypeLike dtype = np.float32 )
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.

◆ register()

None lsst.scarlet.lite.io.blend_base.ScarletBlendBaseData.register ( cls)
Register a new Blend type

The documentation for this class was generated from the following file: