lsst.scarlet.lite gee10cc3b42+a6fc98d2e7
|
Public Member Functions | |
shape (self) | |
dict | as_dict (self) |
ScarletFactorizedComponentData | 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 | spectrum .ndarray |
np | morph .ndarray |
Data for a factorized component Attributes ---------- origin: The lower bound of the component's bounding box. peak: The ``(y, x)`` peak of the component. spectrum: The SED of the component. morph: The 2D morphology of the component.
dict lsst.scarlet.lite.io.ScarletFactorizedComponentData.as_dict | ( | self | ) |
Return the object encoded into a dict for JSON serialization Returns ------- result: The object encoded as a JSON compatible dict
ScarletFactorizedComponentData lsst.scarlet.lite.io.ScarletFactorizedComponentData.from_dict | ( | cls, | |
dict | data, | ||
DTypeLike | dtype = np.float32 ) |
Reconstruct `ScarletFactorizedComponentData` from JSON compatible dict. Parameters ---------- data: Dictionary representation of the object dtype: Datatype of the resulting model. Returns ------- result: The reconstructed object