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

Converting between negative data and wcs axes. #91

Merged
merged 3 commits into from
Mar 14, 2018

Conversation

DanRyanIrish
Copy link
Member

This PR addresses bugs highlighted by Issue #85 in converting between data and wcs axis numbers on an NDCube when the axis number is negative. This is fixed by first converting the negative axis number to the corresponding positive one and then performing the conversion.

@pep8speaks
Copy link

pep8speaks commented Mar 14, 2018

Hello @DanRyanIrish! Thanks for updating the PR.

Cheers ! There are no PEP8 issues in this Pull Request. 🍻

Comment last updated on March 14, 2018 at 12:46 Hours UTC

@DanRyanIrish DanRyanIrish force-pushed the data_to_wcs_axis_fix branch from 4eea081 to ebf5e7f Compare March 14, 2018 12:45
Also add checks to those functions to catch axis numbers out of range.
@DanRyanIrish DanRyanIrish force-pushed the data_to_wcs_axis_fix branch from ebf5e7f to a86df69 Compare March 14, 2018 12:46
@DanRyanIrish DanRyanIrish merged commit afbb269 into sunpy:master Mar 14, 2018
@Cadair Cadair added this to the 1.0.1 milestone Mar 20, 2018
DanRyanIrish added a commit that referenced this pull request Mar 20, 2018
Converting between negative data and wcs axes.
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.

3 participants