LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
A Python context manager used to add multiple overlapping sources along with a parent source that represents all of them together. More...
Public Member Functions | |
def | __init__ |
def | __enter__ |
def | addChild |
Add a child source to the blend, and return the truth catalog record that corresponds to it. More... | |
def | __exit__ |
Public Attributes | |
owner | |
parentRecord | |
parentImage | |
children | |
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().
def lsst.meas.base.tests.BlendContext.__exit__ | ( | self, | |
type_, | |||
value, | |||
tb | |||
) |
Definition at line 78 of file tests.py.
def lsst.meas.base.tests.BlendContext.addChild | ( | self, | |
flux, | |||
centroid, | |||
shape = None |
|||
) |
Add a child source to the blend, and return the truth catalog record that corresponds to it.
[in] | flux | Total flux of the source to be added. |
[in] | centroid | Position of the source to be added (lsst.afw.geom.Point2D). |
[in] | shape | 2nd moments of the source before PSF convolution (lsst.afw.geom.ellipses.Quadrupole). Note that the truth catalog records post-convolution moments) |
Definition at line 62 of file tests.py.