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-31777: Build CoaddPsf of CoaddPsfs in tract WCS #203

Merged
merged 1 commit into from Nov 11, 2021

Conversation

yalsayyad
Copy link
Contributor

Previously it was loading the PSFs pre-warped to the detector WCS.
CoaddPsf warps when evaluating anyway so pre-warping is overkill
and harder to debug.

Copy link
Member

@TallJimbo TallJimbo left a comment

Choose a reason for hiding this comment

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

Looks like there are a few more lines you can remove now, because warped doesn't survive outside that for loop:

652: xyTransform = afwGeom.makeWcsPairTransform(coaddPatch.getWcs(), finalWcs)
653: psfWarped = WarpedPsf(coaddPatch.getPsf(), xyTransform)
661: warped.setPsf(psfWarped)

You may not need to import WarpedPsf after that, either.

Previously it was loading the PSFs pre-warped to the detector WCS.
CoaddPsf warps when evaluating anyway so pre-warping is overkill
and harder to debug.
@yalsayyad yalsayyad merged commit afe8ad1 into master Nov 11, 2021
@yalsayyad yalsayyad deleted the tickets/DM-31777 branch November 11, 2021 02:55
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