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:
- components
list
ofScarletComponentData
The components contained in the source that are not factorized.
- factorizedComponents
list
ofScarletFactorizedComponentData
The components contained in the source that are factorized.
- peakId
int
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
ScarletSourceData
from JSON compatible dict.Methods Documentation
- asDict() dict ¶
Return the object encoded into a dict for JSON serialization
- Returns:
- result
dict
The object encoded as a JSON compatible dict
- result
- classmethod fromDict(data: dict) ScarletSourceData ¶
Reconstruct
ScarletSourceData
from JSON compatible dict.- Parameters:
- data
dict
Dictionary representation of the object
- data
- Returns:
- result
ScarletSourceData
The reconstructed object
- result