lsst.scarlet.lite gee10cc3b42+90ebb246c7
|
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 |
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.
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
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