lsst.scarlet.lite gee10cc3b42+585e252eca
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.scarlet.lite.io.ScarletFactorizedComponentData Class Reference

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
 

Detailed Description

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.

Member Function Documentation

◆ as_dict()

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

◆ from_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

The documentation for this class was generated from the following file: