lsst.scarlet.lite gae0086650b+585e252eca
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.scarlet.lite.io.ScarletSourceData Class Reference

Public Member Functions

dict as_dict (self)
 
ScarletSourceData from_dict (cls, dict data, DTypeLike dtype=np.float32)
 

Public Attributes

 peak_id
 

Static Public Attributes

list components [ScarletComponentData]
 
list factorized_components [ScarletFactorizedComponentData]
 
int peak_id
 

Detailed Description

Data for a scarlet source

Attributes
----------
components:
    The components contained in the source that are not factorized.
factorized_components:
    The components contained in the source that are factorized.
peak_id:
    The peak ID of the source in it's parent's footprint peak catalog.

Member Function Documentation

◆ as_dict()

dict lsst.scarlet.lite.io.ScarletSourceData.as_dict ( self)
Return the object encoded into a dict for JSON serialization

Returns
-------
result:
    The object encoded as a JSON compatible dict

◆ from_dict()

ScarletSourceData lsst.scarlet.lite.io.ScarletSourceData.from_dict ( cls,
dict data,
DTypeLike dtype = np.float32 )
Reconstruct `ScarletSourceData` from JSON compatible
dict.

Parameters
----------
data:
    Dictionary representation of the object
dtype:
    Datatype of the resulting model.

Returns
-------
result:
    The reconstructed object

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