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-11338: CoaddPsf: add control class #86

Merged
merged 2 commits into from Jul 21, 2017
Merged

DM-11338: CoaddPsf: add control class #86

merged 2 commits into from Jul 21, 2017

Conversation

PaulPrice
Copy link
Contributor

This allows simple configuration of CoaddPsf from python.

"Name of warping kernel; choices: lanczos3,lanczos4,lanczos5,bilinear,nearest");
LSST_CONTROL_FIELD(cacheSize, int, "Warping kernel cache size");

explicit CoaddPsfControl(std::string _warpingKernelName="lanczos3", int _cacheSize=10000) :
Copy link
Member

Choose a reason for hiding this comment

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

I don't believe we have an established convention for this, but in cases like this I tend to use a trailing underscore instead of a leading one. Not a big deal either way.


from lsst.pex.config import makeConfigClass
makeConfigClass(CoaddPsfControl, "CoaddPsfConfig")
del makeConfigClass
Copy link
Member

Choose a reason for hiding this comment

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

While it's a bigger change, I think it'd be more appropriate to move this to coaddPsf/coaddPsfContinued.py (and move coaddPsf.cc to coaddPsf/coaddPsf.cc and add an __init__.py there).

And while it's unrelated, would you mind zapping the Swig cleanup code just above this block?

This allows simple configuration of CoaddPsf from python.
@PaulPrice PaulPrice merged commit 9ea43e5 into master Jul 21, 2017
@ktlim ktlim deleted the tickets/DM-11338 branch August 25, 2018 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants