Skip to content

Commit

Permalink
Avoid deprecated Psf methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeyers314 committed Nov 8, 2022
1 parent e79e97c commit defced3
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 defced3

Please sign in to comment.