lsst.scarlet.lite gee10cc3b42+90ebb246c7
|
Public Member Functions | |
shape (self) | |
dict | as_dict (self) |
ScarletComponentData | from_dict (cls, dict data, DTypeLike dtype=np.float32) |
Public Attributes | |
origin | |
peak | |
Static Public Attributes | |
tuple | origin [int, int] |
tuple | peak [float, float] |
np | model .ndarray |
Data for a component expressed as a 3D data cube This is used for scarlet component models that are not factorized, storing their entire model as a 3D data cube (bands, y, x). Attributes ---------- origin: The lower bound of the components bounding box. peak: The peak of the component. model: The model for the component.
dict lsst.scarlet.lite.io.ScarletComponentData.as_dict | ( | self | ) |
Return the object encoded into a dict for JSON serialization Returns ------- result: The object encoded as a JSON compatible dict
ScarletComponentData lsst.scarlet.lite.io.ScarletComponentData.from_dict | ( | cls, | |
dict | data, | ||
DTypeLike | dtype = np.float32 ) |
Reconstruct `ScarletComponentData` from JSON compatible dict Parameters ---------- data: Dictionary representation of the object dtype: Datatype of the resulting model. Returns ------- result: The reconstructed object