lsst.scarlet.lite gee10cc3b42+90ebb246c7
|
Public Member Functions | |
__init__ (self, list[Component] components) | |
int | n_components (self) |
tuple[int, int]|None | center (self) |
tuple[int, int]|None | source_center (self) |
bool | is_null (self) |
Box | bbox (self) |
tuple | bands (self) |
Image | get_model (self, bool use_flux=False) |
parameterize (self, Callable parameterization) | |
__str__ (self) | |
__repr__ (self) | |
Public Attributes | |
components | |
n_components | |
A container for components associated with the same astrophysical object A source can have a single component, or multiple components, and each can be contained in different bounding boxes. Parameters ---------- components: The components contained in the source.
tuple lsst.scarlet.lite.source.Source.bands | ( | self | ) |
The bands in the full source model.
Box lsst.scarlet.lite.source.Source.bbox | ( | self | ) |
The minimal bounding box to contain all of this sources components Null sources have a bounding box with shape `(0,0,0)`
tuple[int, int] | None lsst.scarlet.lite.source.Source.center | ( | self | ) |
The center of the source in the full Blend.
Image lsst.scarlet.lite.source.Source.get_model | ( | self, | |
bool | use_flux = False ) |
Build the model for the source This is never called during optimization and is only used to generate a model of the source for investigative purposes. Parameters ---------- use_flux: Whether to use the re-distributed flux associated with the source instead of the component models. Returns ------- model: The full-color model.
bool lsst.scarlet.lite.source.Source.is_null | ( | self | ) |
True if the source does not have any components
int lsst.scarlet.lite.source.Source.n_components | ( | self | ) |
The number of components in this source
lsst.scarlet.lite.source.Source.parameterize | ( | self, | |
Callable | parameterization ) |
Convert the component parameter arrays into Parameter instances Parameters ---------- parameterization: A function to use to convert parameters of a given type into a `Parameter` in place. It should take a single argument that is the `Component` or `Source` that is to be parameterized.
tuple[int, int] | None lsst.scarlet.lite.source.Source.source_center | ( | self | ) |
The center of the source in its local bounding box.