ScarletComponentData¶
- class lsst.meas.extensions.scarlet.ScarletComponentData(xy0: tuple[int, int], extent: tuple[int, int], center: tuple[float, float], model: ndarray)¶
- Bases: - object- Data 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 - xy0and- extentuse 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 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 
 
- result
 
 - classmethod fromDict(data: dict) ScarletComponentData¶
- Reconstruct - ScarletComponentDatafrom JSON compatible dict- Parameters:
- datadict
- Dictionary representation of the object 
 
- data
- Returns:
- resultScarletComponentData
- The reconstructed object 
 
- result