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

afw review for DM-2929: re-enabling tests #32

Merged
merged 8 commits into from Jul 2, 2015
Merged

Conversation

TallJimbo
Copy link
Member

No description provided.

TallJimbo and others added 4 commits June 25, 2015 10:45
wcs1.py and testSchema.py had some whitespace issues and unused code.
This commit removes the whitespace and unused code.
A linter turned up some keys that were not tested.  This led to
adding a method for testing keys so that it is harder to miss testing
newly added keys.
@@ -133,32 +133,34 @@ def tearDown(self):
def makeWcs(self):
crval = afwCoord.Coord(afwGeom.Point2D(1.606631, 5.090329))
crpix = afwGeom.Point2D(2036., 2000.)
wcs = afwImage.makeWcs(crval, crpix, 5.399452e-5, -1.30770e-5, 1.30770e-5, 5.399452e-5)
return afwImage.makeWcs(crval, crpix, 5.399452e-5, -1.30770e-5, 1.30770e-5, 5.399452e-5)
Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like there's an extra space here.

The test that tests WCS flip and rotation was not enabled in the suite.  This
commit enables that test and fixes a bug in the WCS generation function where
the wcs was created but not returned.
The methods that flip and rotate WCS objects had an off by one error.
This commit fixes those methods and adds comments to describe the issue.
The test for rotation and flipping of WCS objects had an off by
one error in the test positions (they were not being rotated/flipped
correctly).
SimonKrughoff added a commit that referenced this pull request Jul 2, 2015
afw review for DM-2929: re-enabling tests
@SimonKrughoff SimonKrughoff merged commit 9124caf into master Jul 2, 2015
@ktlim ktlim deleted the tickets/DM-2929 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