LSST Applications g04c3c9f7ca+2075667efa,g1e125bf412+5f448d5fcf,g2079a07aa2+3e9fd84d81,g2305ad1205+b635cf1488,g2bbee38e9b+6c6beb4891,g337abbeb29+6c6beb4891,g33d1c0ed96+6c6beb4891,g3a166c0a6a+6c6beb4891,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+42f171e1e6,g5c3423f6d4+d536b04327,g607f77f49a+d536b04327,g6f43f06aed+ca1339dc19,g858d7b2824+d536b04327,g8ee334c5b4+d7f9608c2f,g9963eaa53e+b3dc1655d3,g998f4353bf+d536b04327,g99cad8db69+8ef2408349,g9ddcbc5298+9a081db1e4,ga1e77700b3+2cbb763275,gadfd92a7e4+aec2f3b930,gae0086650b+585e252eca,gb0e22166c9+0e73c8378f,gb3b7280ab2+cb5fdb229e,gbb8dafda3b+a327199e22,gc120e1dc64+88074880ea,gc28159a63d+6c6beb4891,gcdd4ae20e8+bd241b2308,gcde1bda545+903e937d91,gcf0d15dbbd+bd241b2308,gdaeeff99f8+f9a426f77a,gddc38dedce+585e252eca,ge79ae78c31+6c6beb4891,gfbcc870c63+b310236976,w.2024.23
LSST Data Management Base Package
Loading...
Searching...
No Matches
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

 __init__ (self, exposuresById, footprintsByExp)
 
 insertSource (self, id)
 
 removeSource (self, id)
 
 end (self)
 

Detailed Description

Make a list of NoiseReplacers behave like a single one.

This class provides conenient syntactic sugar for noise replacement across
multple exposures.

Notes
-----
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 375 of file noiseReplacer.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 387 of file noiseReplacer.py.

387 def __init__(self, exposuresById, footprintsByExp):
388 # exposuresById --- dict of {exposureId: exposure} (possibly subimages)
389 # footprintsByExp --- nested dict of {exposureId: {objId: (parent, footprint)}}
390 list.__init__(self)
391 for expId, exposure in exposuresById.items():
392 self.append(NoiseReplacer(exposure, footprintsByExp[expId]), expId)
393

Member Function Documentation

◆ end()

lsst.meas.base.noiseReplacer.NoiseReplacerList.end ( self)
Clean-up when the use of the noise replacer is done.

Definition at line 406 of file noiseReplacer.py.

406 def end(self):
407 """Clean-up when the use of the noise replacer is done.
408 """
409 for item in self:
410 self.end()
411
412
int end

◆ insertSource()

lsst.meas.base.noiseReplacer.NoiseReplacerList.insertSource ( self,
id )
Insert original pixels of the given source (by id) into the exposure.

Definition at line 394 of file noiseReplacer.py.

394 def insertSource(self, id):
395 """Insert original pixels of the given source (by id) into the exposure.
396 """
397 for item in self:
398 self.insertSource(id)
399

◆ removeSource()

lsst.meas.base.noiseReplacer.NoiseReplacerList.removeSource ( self,
id )
Insert noise pixels of the given source (by id) into the exposure.

Definition at line 400 of file noiseReplacer.py.

400 def removeSource(self, id):
401 """Insert noise pixels of the given source (by id) into the exposure.
402 """
403 for item in self:
404 self.removeSource(id)
405

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