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-28093: Change isrTask (and relevant configs) to use physicalLabel #174

Merged
merged 4 commits into from Mar 11, 2021

Conversation

czwa
Copy link
Contributor

@czwa czwa commented Mar 4, 2021

This ticket also provides a checkFilter function, to reduce code duplication between fringe, straylight, etc filter checks against config parameters.

@czwa czwa requested a review from parejkoj March 4, 2021 23:48
Copy link
Contributor

@parejkoj parejkoj left a comment

Choose a reason for hiding this comment

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

See comments.

Were these all the uses of filter in ISR?

python/lsst/ip/isr/isrFunctions.py Show resolved Hide resolved
return True
elif thisFilter.bandLabel in filterList:
if log:
log.warn("Physical filter (%s) should be used instead of band %s (%s)",
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like some kind of information is missing from this warning. Maybe something about the exposure that would allow the user to track down the problem? Or is this a warning about the filterList itself?

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's a warning about the filterList. This ticket is migrating everything to use physicalLabel, but if someone changes the config file (or adds a new camera), I want there to be a warning that they should not use band.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please make that more clear in the log message: as it stands, it's not obvious.

python/lsst/ip/isr/isrTask.py Outdated Show resolved Hide resolved
@czwa czwa merged commit 8afa328 into master Mar 11, 2021
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