|
lsst.meas.base g51c93253c0+db90bbf60d
|
Public Member Functions | |
| __init__ (self, owner) | |
| __enter__ (self) | |
| addChild (self, instFlux, centroid, shape=None) | |
| __exit__ (self, type_, value, tb) | |
Public Attributes | |
| owner = owner | |
| parentRecord = self.owner.catalog.addNew() | |
| parentImage = lsst.afw.image.ImageF(self.owner.exposure.getBBox()) | |
| list | children = [] |
Context manager which adds multiple overlapping sources and a parent. Notes ----- This is used as the return value for `TestDataset.addBlend`, and this is the only way it should be used.
| lsst.meas.base.tests.BlendContext.__exit__ | ( | self, | |
| type_, | |||
| value, | |||
| tb ) |
| lsst.meas.base.tests.BlendContext.addChild | ( | self, | |
| instFlux, | |||
| centroid, | |||
| shape = None ) |
Add a child to the blend; return corresponding truth catalog record.
instFlux : `float`
Total instFlux of the source to be added.
centroid : `lsst.geom.Point2D`
Position of the source to be added.
shape : `lsst.afw.geom.Quadrupole`
Second moments of the source before PSF convolution. Note that
the truth catalog records post-convolution moments)
| lsst.meas.base.tests.BlendContext.parentImage = lsst.afw.image.ImageF(self.owner.exposure.getBBox()) |
| lsst.meas.base.tests.BlendContext.parentRecord = self.owner.catalog.addNew() |