ScarletSourceData

class lsst.meas.extensions.scarlet.ScarletSourceData(components: list, factorizedComponents: list, peakId: int)

Bases: object

Data for a scarlet source

Attributes:
components : list of ScarletComponentData

The components contained in the source that are not factorized.

factorizedComponents : list of ScarletFactorizedComponentData

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.

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

classmethod fromDict(data: dict) → lsst.meas.extensions.scarlet.io.ScarletSourceData

Reconstruct ScarletSourceData from JSON compatible dict.

Parameters:
data : dict

Dictionary representation of the object

Returns:
result : ScarletSourceData

The reconstructed object