ScarletSourceData¶
- class lsst.meas.extensions.scarlet.ScarletSourceData(components: list[lsst.meas.extensions.scarlet.io.ScarletComponentData], factorizedComponents: list[lsst.meas.extensions.scarlet.io.ScarletFactorizedComponentData], peakId: int)¶
- Bases: - object- Data for a scarlet source - Attributes:
- componentslistofScarletComponentData
- The components contained in the source that are not factorized. 
- factorizedComponentslistofScarletFactorizedComponentData
- The components contained in the source that are factorized. 
- peakIdint
- The peak ID of the source in it’s parent’s footprint peak catalog. 
 
- components
 - Methods Summary - asDict()- Return the object encoded into a dict for JSON serialization - fromDict(data)- Reconstruct - ScarletSourceDatafrom JSON compatible dict.- Methods Documentation - asDict() dict¶
- Return the object encoded into a dict for JSON serialization - Returns:
- resultdict
- The object encoded as a JSON compatible dict 
 
- result
 
 - classmethod fromDict(data: dict) ScarletSourceData¶
- Reconstruct - ScarletSourceDatafrom JSON compatible dict.- Parameters:
- datadict
- Dictionary representation of the object 
 
- data
- Returns:
- resultScarletSourceData
- The reconstructed object 
 
- result