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
Classes | Functions
lsst.meas.algorithms.pcaPsfDeterminer Namespace Reference

Classes

class  PcaPsfDeterminerConfig
 
class  PcaPsfDeterminer
 A measurePsfTask psf estimator. More...
 

Functions

def candidatesIter
 Generator for Psf candidates. More...
 

Function Documentation

def lsst.meas.algorithms.pcaPsfDeterminer.candidatesIter (   psfCellSet,
  ignoreBad = True 
)

Generator for Psf candidates.

This allows two 'for' loops to be reduced to one.

Parameters
psfCellSetSpatialCellSet of PSF candidates
ignoreBadIgnore candidates flagged as BAD?
Returns
SpatialCell, PsfCandidate

Definition at line 623 of file pcaPsfDeterminer.py.

624 def candidatesIter(psfCellSet, ignoreBad=True):
625  """!Generator for Psf candidates
626 
627  This allows two 'for' loops to be reduced to one.
628 
629  \param psfCellSet SpatialCellSet of PSF candidates
630  \param ignoreBad Ignore candidates flagged as BAD?
631  \return SpatialCell, PsfCandidate
632  """
633  for cell in psfCellSet.getCellList():
634  for cand in cell.begin(ignoreBad):
635  yield (cell, algorithmsLib.cast_PsfCandidateF(cand))
def candidatesIter
Generator for Psf candidates.