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

Update get_dependent_axes implementation. #80

Merged
merged 2 commits into from
Mar 2, 2018

Conversation

DanRyanIrish
Copy link
Member

@DanRyanIrish DanRyanIrish commented Mar 2, 2018

This PR updates the API and implementation of get_dependent_axes() to use method closer to that which is due to be merged into astropy from glue. In doing so it fixes a bug in NDCube.axis_world_coords which occurred when there was a missing axis.

@DanRyanIrish DanRyanIrish requested a review from Cadair March 2, 2018 15:09
return dependent_data_axes


def get_dependent_wcs_axes(wcs_object, wcs_axis, missing_axis):
Copy link
Member

Choose a reason for hiding this comment

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

is missing_axis actually being used in this function?

Copy link
Member Author

Choose a reason for hiding this comment

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

No. That's for the spot.

Just working on tests now.

This commit updates the API and implementation of get_dependent_axes() to use method closer to that which is due to be merged into astropy from glue.  In doing so it fixes a bug in NDCube.axis_world_coords which occurred when there was a missing axis.
@DanRyanIrish DanRyanIrish merged commit 1b0d860 into sunpy:master Mar 2, 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
Update get_dependent_axes implementation.
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.

2 participants