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-9313: obs_decam should not call stripWcsKeywords #44

Merged
merged 2 commits into from Feb 8, 2017

Conversation

hsinfang
Copy link

@hsinfang hsinfang commented Feb 7, 2017

No description provided.

@@ -242,12 +240,12 @@ def std_raw(self, item, dataId):
# from the metadata. Once TPV is supported, the following keyword
# removal may not be necessary here and would probably be done at
Copy link
Author

Choose a reason for hiding this comment

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

May you please correct these comments too? These comments were there partially because of the line you removed. My understanding is the previous behavior of afw.image.makeWcs would not modify the input metadata at all if it's PTV. And the behavior has changed now with DM-9298. Now it removes some wcs cards but not PV cards. Is that correct?

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed. Unfortunately the code is still required because although makeWcs strips those PVn_n keywords internally, it does so on a deep copy. I updated the comment accordingly.

`makeWcs` already strips keywords (if asked to do so)
and `stripWcsKeywords` is not part of afw's public API.
Use `from __future__ import absolute_import, division, print_function`
and check all existing use of division.
Fix flake8 warnings.
Note: one file uses two undefined variables; I will file a ticket.
@r-owen r-owen merged commit a6bd352 into master Feb 8, 2017
@ktlim ktlim deleted the tickets/DM-9313 branch August 25, 2018 06:45
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