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:
componentslist of ScarletComponentData

The components contained in the source that are not factorized.

factorizedComponentslist of ScarletFactorizedComponentData

The components contained in the source that are factorized.

peakIdint

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:
resultdict

The object encoded as a JSON compatible dict

classmethod fromDict(data: dict) ScarletSourceData

Reconstruct ScarletSourceData from JSON compatible dict.

Parameters:
datadict

Dictionary representation of the object

Returns:
resultScarletSourceData

The reconstructed object