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

Make coadd template warp type configurable #75

Merged
merged 1 commit into from Sep 22, 2017
Merged

Conversation

yalsayyad
Copy link
Contributor

Use --config getTemplate.warpType=psfMatched to get
PSF-matched coadds as templates.

Use `--config getTemplate.warpType=psfMatched` to get
PSF-matched coadds as templates.
Copy link
Contributor

@isullivan isullivan left a comment

Choose a reason for hiding this comment

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

Looks pretty straightforward.

TODO: This nearly duplicates a method in CoaddBaseTask (DM-11985)
"""
warpType = self.config.warpType
suffix = "" if warpType == "direct" else warpType[0].upper() + warpType[1:]
Copy link
Contributor

Choose a reason for hiding this comment

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

This is probably the most efficient way of doing this, but using warpType .title() would be more clear.

Copy link
Contributor Author

@yalsayyad yalsayyad Sep 22, 2017

Choose a reason for hiding this comment

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

Would have been more clear, if it did what I wanted.

>>> 'psfMatched'.title()
'Psfmatched'  :( 

Copy link
Contributor

Choose a reason for hiding this comment

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

Oops. Yes, I didn't realize that would un-capitalize letters in the rest of the word. Good catch.

@yalsayyad yalsayyad merged commit 2800e60 into master Sep 22, 2017
@ktlim ktlim deleted the tickets/DM-11758 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

2 participants