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-26007: defaultFilter is not used if a filterName is given to loadSkyCircle #209

Merged
merged 2 commits into from Aug 4, 2020

Conversation

parejkoj
Copy link
Contributor

No description provided.

Copy link
Contributor

@r-owen r-owen left a comment

Choose a reason for hiding this comment

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

I am not entirely clear why we ended up specifying a default filter without also having a filter map, but assuming there are good reasons for that, the idea of this change seems sensible. However, I feel the implementation is too loose, as it also allows misspelled filter names to silently map to "camFlux" when there is a filter map.

tests/test_loadReferenceObjects.py Outdated Show resolved Hide resolved
python/lsst/meas/algorithms/loadReferenceObjects.py Outdated Show resolved Hide resolved
tests/test_loadReferenceObjects.py Outdated Show resolved Hide resolved
Copy link
Contributor

@r-owen r-owen left a comment

Choose a reason for hiding this comment

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

This looks great. I had one trivial suggestion for your consideration.

python/lsst/meas/algorithms/loadReferenceObjects.py Outdated Show resolved Hide resolved
anyFilterMapsToThis is exclusive with filterMap, so validate that.
@parejkoj parejkoj merged commit 01203ff into master Aug 4, 2020
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