Skip to content

Commit

Permalink
Merge pull request #225 from lsst/tickets/DM-36928
Browse files Browse the repository at this point in the history
DM-36928: Avoid deprecated Psf methods
  • Loading branch information
jmeyers314 committed Nov 22, 2022
2 parents da2f591 + 254130d commit 070148d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_MeasureSources.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ def testPeakLikelihoodFlux(self):
sigma = fwhm/FwhmPerSigma
convolutionControl = afwMath.ConvolutionControl()
psf = afwDetection.GaussianPsf(kernelWidth, kernelWidth, sigma)
psfKernel = psf.getLocalKernel()
psfImage = psf.computeKernelImage()
psfKernel = psf.getLocalKernel(psf.getAveragePosition())
psfImage = psf.computeKernelImage(psf.getAveragePosition())
sumPsfSq = np.sum(psfImage.getArray()**2)
psfSqArr = psfImage.getArray()**2

Expand Down

0 comments on commit 070148d

Please sign in to comment.