Skip to content

Commit

Permalink
Merge pull request #66 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 5c5b326 + c9d59c9 commit 3e24d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def initData(shape, coords, amplitudes=None, convolve=True):
targetPsfImage = targetPsf.get_model()[0]

psfs = [GaussianPsf(psfShape[1], psfShape[0], 1+.2*b) for b in range(B)]
psfImages = np.array([psf.computeImage().array for psf in psfs])
psfImages = np.array([psf.computeImage(psf.getAveragePosition()).array for psf in psfs])
psfImages /= psfImages.max(axis=(1, 2))[:, None, None]

# Convolve the image with the psf in each channel
Expand Down

0 comments on commit 3e24d54

Please sign in to comment.