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
Public Member Functions | List of all members
lsst.meas.base.noiseReplacer.NoiseReplacerList Class Reference
Inheritance diagram for lsst.meas.base.noiseReplacer.NoiseReplacerList:

Public Member Functions

def __init__
 
def insertSource
 
def removeSource
 
def end
 

Detailed Description

Syntactic sugar that makes a list of NoiseReplacers (for multiple exposures)
behave like a single one.

This is only used in the multifit driver, but the logic there is already pretty
complex, so it's nice to have this to simplify it.

Definition at line 308 of file noiseReplacer.py.

Constructor & Destructor Documentation

def lsst.meas.base.noiseReplacer.NoiseReplacerList.__init__ (   self,
  exposuresById,
  footprintsByExp 
)

Definition at line 316 of file noiseReplacer.py.

317  def __init__(self, exposuresById, footprintsByExp):
318  # exposuresById --- dict of {exposureId: exposure} (possibly subimages)
319  # footprintsByExp --- nested dict of {exposureId: {objId: (parent, footprint)}}
320  list.__init__(self)
321  for expId, exposure in exposuresById.iteritems():
322  self.append(NoiseReplacer(exposure, footprintsByExp[expId]), expId)
Class that handles replacing sources with noise during measurement.

Member Function Documentation

def lsst.meas.base.noiseReplacer.NoiseReplacerList.end (   self)
Cleanup when the use of the Noise replacer is done.

Definition at line 333 of file noiseReplacer.py.

334  def end(self):
335  """Cleanup when the use of the Noise replacer is done.
336  """
337  for item in self: self.end()
def lsst.meas.base.noiseReplacer.NoiseReplacerList.insertSource (   self,
  id 
)
Insert the original pixels for a given source (by id) into the original exposure.

Definition at line 323 of file noiseReplacer.py.

324  def insertSource(self, id):
325  """Insert the original pixels for a given source (by id) into the original exposure.
326  """
327  for item in self: self.insertSource(id)
def lsst.meas.base.noiseReplacer.NoiseReplacerList.removeSource (   self,
  id 
)
Insert the noise pixels for a given source (by id) into the original exposure.

Definition at line 328 of file noiseReplacer.py.

329  def removeSource(self, id):
330  """Insert the noise pixels for a given source (by id) into the original exposure.
331  """
332  for item in self: self.removeSource(id)

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