ScarletComponentData¶
- class lsst.meas.extensions.scarlet.ScarletComponentData(xy0: tuple[int, int], extent: tuple[int, int], center: tuple[float, float], model: ndarray)¶
Bases:
objectData for a component expressed as a 3D data cube
For now this is used for scarlet main source models because their structure is too complex to persist in the same way that scarlet lite components can be persisted.
Note that both
xy0andextentuse 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
ScarletComponentDatafrom JSON compatible dictMethods 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) ScarletComponentData¶
Reconstruct
ScarletComponentDatafrom JSON compatible dict- Parameters:
- data
dict Dictionary representation of the object
- data
- Returns:
- result
ScarletComponentData The reconstructed object
- result