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

MAJOR: WCS reversal is non-functional #478

Merged
merged 7 commits into from
Mar 30, 2018

Conversation

keflavich
Copy link
Contributor

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.

@keflavich
Copy link
Contributor Author

@astrofrog - does this ring any bells? Somehow our tests didn't cover this, which is a HUGE oversight.

@keflavich
Copy link
Contributor Author

I cancelled some of the travis builds since they were intentional failures

@coveralls
Copy link

coveralls commented Mar 28, 2018

Coverage Status

Coverage increased (+0.09%) to 75.187% when pulling b5c6e7d on keflavich:wcs_reversal into 8f4f3f9 on radio-astro-tools:master.

@keflavich
Copy link
Contributor Author

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

@keflavich
Copy link
Contributor Author

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

Copy link
Member

@astrofrog astrofrog left a 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])
Copy link
Member

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?

@keflavich keflavich merged commit 2575a62 into radio-astro-tools:master Mar 30, 2018
@keflavich keflavich deleted the wcs_reversal branch March 30, 2018 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants