A Python context manager used to add multiple overlapping sources along with a parent source that represents all of them together.
More...
|
def | __init__ (self, owner) |
|
def | __enter__ (self) |
|
def | addChild (self, instFlux, centroid, shape=None) |
| Add a child source to the blend, and return the truth catalog record that corresponds to it. More...
|
|
def | __exit__ (self, type_, value, tb) |
|
A Python context manager used to add multiple overlapping sources along with a parent source that represents all of them together.
This is used as the return value for TestDataset.addBlend(), and this is the only way it should be used. The only public method is addChild().
Definition at line 42 of file tests.py.
◆ __init__()
def lsst.meas.base.tests.BlendContext.__init__ |
( |
|
self, |
|
|
|
owner |
|
) |
| |
◆ __enter__()
def lsst.meas.base.tests.BlendContext.__enter__ |
( |
|
self | ) |
|
◆ __exit__()
def lsst.meas.base.tests.BlendContext.__exit__ |
( |
|
self, |
|
|
|
type_, |
|
|
|
value, |
|
|
|
tb |
|
) |
| |
◆ addChild()
def lsst.meas.base.tests.BlendContext.addChild |
( |
|
self, |
|
|
|
instFlux, |
|
|
|
centroid, |
|
|
|
shape = None |
|
) |
| |
Add a child source to the blend, and return the truth catalog record that corresponds to it.
- Parameters
-
[in] | instFlux | Total instFlux of the source to be added. |
[in] | centroid | Position of the source to be added (lsst.geom.Point2D). |
[in] | shape | 2nd moments of the source before PSF convolution (lsst.afw.geom.Quadrupole). Note that the truth catalog records post-convolution moments) |
Definition at line 61 of file tests.py.
◆ children
lsst.meas.base.tests.BlendContext.children |
◆ owner
lsst.meas.base.tests.BlendContext.owner |
◆ parentImage
lsst.meas.base.tests.BlendContext.parentImage |
◆ parentRecord
lsst.meas.base.tests.BlendContext.parentRecord |
The documentation for this class was generated from the following file: