ScarletComponentData¶
-
class
lsst.meas.extensions.scarlet.
ScarletComponentData
(xy0: tuple, extent: tuple, center: tuple, model: numpy.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
xy0
andextent
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 ScarletComponentData
from 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) → lsst.meas.extensions.scarlet.io.ScarletComponentData¶ Reconstruct
ScarletComponentData
from JSON compatible dictParameters: - data :
dict
Dictionary representation of the object
Returns: - result :
ScarletComponentData
The reconstructed object
- data :
-