lsst.meas.algorithms  16.0-10-g36053158+2
Classes | Functions
lsst.meas.algorithms.pcaPsfDeterminer Namespace Reference

Classes

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

Functions

def numCandidatesToReject (numBadCandidates, numIter, totalIter)
 
def candidatesIter (psfCellSet, ignoreBad=True)
 Generator for Psf candidates. More...
 

Function Documentation

◆ candidatesIter()

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 636 of file pcaPsfDeterminer.py.

◆ numCandidatesToReject()

def lsst.meas.algorithms.pcaPsfDeterminer.numCandidatesToReject (   numBadCandidates,
  numIter,
  totalIter 
)
Return the number of PSF candidates to be rejected.

The number of candidates being rejected on each iteration gradually
increases, so that on the Nth of M iterations we reject N/M of the bad
candidates.

Parameters
----------
numBadCandidates : int
    Number of bad candidates under consideration.

numIter : int
    The number of the current PSF iteration.

totalIter : int
    The total number of PSF iterations.

Returns
-------
int
    Number of candidates to reject.

Definition at line 46 of file pcaPsfDeterminer.py.