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 | Public Attributes | List of all members
lsst.meas.deblender.baseline.CachingPsf Class Reference

In the PSF fitting code, we request PSF models for all peaks near the one being fit. More...

Inheritance diagram for lsst.meas.deblender.baseline.CachingPsf:

Public Member Functions

def __init__
 
def computeImage
 

Public Attributes

 cache
 
 psf
 

Detailed Description

In the PSF fitting code, we request PSF models for all peaks near the one being fit.

This was turning out to be quite expensive in some cases. Here, we cache the PSF models to bring the cost down closer to O(N) rather than O(N^2).

Definition at line 516 of file baseline.py.

Constructor & Destructor Documentation

def lsst.meas.deblender.baseline.CachingPsf.__init__ (   self,
  psf 
)

Member Function Documentation

def lsst.meas.deblender.baseline.CachingPsf.computeImage (   self,
  cx,
  cy 
)

Definition at line 526 of file baseline.py.

527  def computeImage(self, cx, cy):
528  im = self.cache.get((cx, cy), None)
529  if im is not None:
530  return im
531  try:
532  im = self.psf.computeImage(afwGeom.Point2D(cx, cy))
534  im = self.psf.computeImage()
535  self.cache[(cx, cy)] = im
536  return im

Member Data Documentation

lsst.meas.deblender.baseline.CachingPsf.cache

Definition at line 524 of file baseline.py.

lsst.meas.deblender.baseline.CachingPsf.psf

Definition at line 525 of file baseline.py.


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