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

ModelPsfMatchTask: Set output exposure PSF to model PSF used #55

Merged
merged 1 commit into from Apr 1, 2017

Conversation

yalsayyad
Copy link
Contributor

No description provided.

@@ -300,6 +300,7 @@ def run(self, exposure, referencePsfModel, kernelSum=1.0):
psfMatchedExposure = afwImage.ExposureF(exposure.getBBox(), exposure.getWcs())
psfMatchedExposure.setFilter(exposure.getFilter())
psfMatchedExposure.setCalib(exposure.getCalib())
psfMatchedExposure.setPsf(referencePsfModel)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't pretend to have looked at the downstream code & potential consequences, so I'll just ask and accept your answer to the question: does the refererecePsfModel still need to be returned as a separate component of the Struct given that it is now explicitly attached to the returned psfMatchedExposure?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It doesn't still need to be there. Because it has only been there for 4 months, it is extremely unlikely that anyone's non-stack scripts depend on it now, so I'm comfortable making the interface change of removing it.

Remove referenceModelPsf from returned Struct, because it is
now accessible from the psfMatchedExposure.
@yalsayyad yalsayyad merged commit 62a3b6c into master Apr 1, 2017
@ktlim ktlim deleted the tickets/DM-9564 branch August 25, 2018 06:44
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

3 participants