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-29313: FilterLabel is not properly filled in for CFHT raws #370

Merged
merged 4 commits into from Mar 30, 2021

Conversation

kfindeisen
Copy link
Member

This PR applies two fixes to filter ambiguity problems reported in Gen 2. The first preserves information read from non-Exposure image files, the second adds a rule to disambiguate a common case of multiple filters matching a single band.

_standardizeExposure sets the WCS only if it is not yet set, and prefers
boresight-based WCS to metadata-based. Therefore, exposureFromImage
should not set the WCS from the metadata.
Copy link
Collaborator

@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.

Some general questions, but I think the only real concern I have is regarding the phrasing of one comment which might actually be fine as it is. Otherwise, this looks like a thorough fix (and thanks for the added param docstrings!).

python/lsst/obs/base/cameraMapper.py Outdated Show resolved Hide resolved
tests/test_cameraMapper.py Show resolved Hide resolved
python/lsst/obs/base/cameraMapper.py Show resolved Hide resolved
python/lsst/obs/base/cameraMapper.py Show resolved Hide resolved
Code will now recognize that filters identified by an afw_name are
unlikely to be referred to by any other name.
@kfindeisen kfindeisen merged commit 154d855 into master Mar 30, 2021
@kfindeisen kfindeisen deleted the tickets/DM-29313 branch March 30, 2021 17:23
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