Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-32549: Supply position for psf shape computations #603

Merged
merged 1 commit into from Dec 8, 2021

Conversation

isullivan
Copy link
Contributor

Note that the changes to ImageDifferenceTask are being done separately on DM-31777.

Copy link
Contributor

@mrawls mrawls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix typo, then good to go.

Comment on lines 1326 to 1327
tempalteAvgPos = templatePsf.getAveragePosition()
psfRefSize = templatePsf.computeShape(tempalteAvgPos).getDeterminantRadius()*sigma2fwhm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tempalteAvgPos = templatePsf.getAveragePosition()
psfRefSize = templatePsf.computeShape(tempalteAvgPos).getDeterminantRadius()*sigma2fwhm
templateAvgPos = templatePsf.getAveragePosition()
psfRefSize = templatePsf.computeShape(templateAvgPos).getDeterminantRadius()*sigma2fwhm

@@ -1319,7 +1321,10 @@ def selectCoaddPsf(self, templateCoadd, warpRefList):
# Note: ``ccds`` is a `lsst.afw.table.ExposureCatalog` with one entry per ccd and per visit
# If there are multiple ccds, it will have that many times more elements than ``warpExpRef``
ccds = templateCoadd.getInfo().getCoaddInputs().ccds
psfRefSize = templateCoadd.getPsf().computeShape().getDeterminantRadius()*sigma2fwhm
templatePsf = templateCoadd.getPsf()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is saving templatePsf really needed here or can we use it on the fly like all the other instances? You don't assign calPsf for instance, you just use cal.getPsf().stuff

@isullivan isullivan merged commit 80f1dd7 into main Dec 8, 2021
@isullivan isullivan deleted the tickets/DM-32549 branch December 8, 2021 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants