lsst.meas.base gfc624380f7+f1683bbee9
Public Member Functions | Public Attributes | List of all members
lsst.meas.base.tests.BlendContext Class Reference

Public Member Functions

def __init__ (self, owner)
 
def __enter__ (self)
 
def addChild (self, instFlux, centroid, shape=None)
 
def __exit__ (self, type_, value, tb)
 

Public Attributes

 owner
 
 parentRecord
 
 parentImage
 
 children
 

Detailed Description

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.

Definition at line 40 of file tests.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.meas.base.tests.BlendContext.__init__ (   self,
  owner 
)

Definition at line 49 of file tests.py.

Member Function Documentation

◆ __enter__()

def lsst.meas.base.tests.BlendContext.__enter__ (   self)

Definition at line 55 of file tests.py.

◆ __exit__()

def lsst.meas.base.tests.BlendContext.__exit__ (   self,
  type_,
  value,
  tb 
)

Definition at line 76 of file tests.py.

◆ addChild()

def 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)

Definition at line 59 of file tests.py.

Member Data Documentation

◆ children

lsst.meas.base.tests.BlendContext.children

Definition at line 53 of file tests.py.

◆ owner

lsst.meas.base.tests.BlendContext.owner

Definition at line 50 of file tests.py.

◆ parentImage

lsst.meas.base.tests.BlendContext.parentImage

Definition at line 52 of file tests.py.

◆ parentRecord

lsst.meas.base.tests.BlendContext.parentRecord

Definition at line 51 of file tests.py.


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