Skip to content

Commit

Permalink
Merge pull request #205 from lsst/tickets/DM-32549
Browse files Browse the repository at this point in the history
DM-32549: Supply position to psf.computeShape() calls
  • Loading branch information
isullivan committed Dec 8, 2021
2 parents 5f749c9 + cb5ef32 commit 5706f01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/lsst/ip/diffim/modelPsfMatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,10 @@ def run(self, exposure, referencePsfModel, kernelSum=1.0):
result = self._buildCellSet(exposure, referencePsfModel)
kernelCellSet = result.kernelCellSet
referencePsfModel = result.referencePsfModel
fwhmScience = exposure.getPsf().computeShape().getDeterminantRadius()*sigma2fwhm
fwhmModel = referencePsfModel.computeShape().getDeterminantRadius()*sigma2fwhm
sciAvgPos = exposure.getPsf().getAveragePosition()
modelAvgPos = referencePsfModel.getAveragePosition()
fwhmScience = exposure.getPsf().computeShape(sciAvgPos).getDeterminantRadius()*sigma2fwhm
fwhmModel = referencePsfModel.computeShape(modelAvgPos).getDeterminantRadius()*sigma2fwhm

basisList = makeKernelBasisList(self.kConfig, fwhmScience, fwhmModel, metadata=self.metadata)
spatialSolution, psfMatchingKernel, backgroundModel = self._solve(kernelCellSet, basisList)
Expand Down

0 comments on commit 5706f01

Please sign in to comment.