-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Fix bug in 2D plotting. #182
Conversation
Bug was caused when both data and WCS were 2D. In this case a slice list was being called, even though that list was only created when the data was 2D with a >2D WCS with missing axes.
Thanks for the pull request @DanRyanIrish! Everything looks great! |
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.
Tested this and it works.
Thanks for pointing out that bug @ehsteve. It's unclear whether this is a bug in I'll raise an issue and deal with it in separate PR as it's not an obvious fix. |
Bug was caused when both data and WCS were 2D. In this case a slice list
was being called, even though that list was only created when the data
was 2D with a >2D WCS with missing axes.
Description
The bug is fixed by only entering the
slice_list
to thegca_wcs
method if thewcs
is greater than 2 when the data is 2D.Fixes #