ScarletBlendData¶
- class lsst.meas.extensions.scarlet.ScarletBlendData(xy0: tuple[int, int], extent: tuple[int, int], sources: dict[int, lsst.meas.extensions.scarlet.io.ScarletSourceData], psfCenter: tuple[float, float])¶
Bases:
object
Data for an entire blend.
Note that
xy0
,extent
, andpsfCenter
use lsst(x, y)
convention, not the scarlet/C++(y, x)
convention.- Attributes:
Methods Summary
asDict
()Return the object encoded into a dict for JSON serialization
fromDict
(data)Reconstruct
ScarletBlendData
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) ScarletBlendData ¶
Reconstruct
ScarletBlendData
from JSON compatible dict.- Parameters:
- data
dict
Dictionary representation of the object
- data
- Returns:
- result
ScarletBlendData
The reconstructed object
- result