-
Notifications
You must be signed in to change notification settings - Fork 62
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
MAJOR: WCS reversal is non-functional #478
Conversation
@astrofrog - does this ring any bells? Somehow our tests didn't cover this, which is a HUGE oversight. |
I cancelled some of the travis builds since they were intentional failures |
several of the travis jobs have failed on code that is not present in the latest commit. This appears to be a travis bug? https://travis-ci.org/radio-astro-tools/spectral-cube/jobs/359491426#L1246 re-running travis... |
@astrofrog I think this turned out to be a very simple oversight, where I simply forgot to set one of the WCS parameters. Could you just verify that I've done something halfway sensible, with the tests if nothing else? This is an urgent bugfix, but I don't want to merge it without someone else's eyes on it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good except for a minor suggestion below
np.testing.assert_array_equal(rrcube.spectral_axis.value, | ||
cube.spectral_axis.value) | ||
np.testing.assert_array_equal(rcube.spectral_axis.value, | ||
cube.spectral_axis.value[::-1]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check that the world coordinate axes stay the same?
If you slice a cube with [::-1], it does not return a valid cube. This is a
severe error that I don't really comprehend yet, so I'm starting with the
regression test.