-
Notifications
You must be signed in to change notification settings - Fork 153
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 world coordinates for 1D WCS #2345
Conversation
@astrofrog some cases with |
This for example – Maybe have to check additionally for something like |
…inates to be returned for 1D coordinate objects
Still a WIP, but getting closer |
… to be APE 14-compliant
@dhomeier the remaining issue was that IdentityCoordinates, for single coordinates, should return a scalar or array, not a tuple with one element (this is prescribed by the APE 14 API) |
Yes, that seemed weird, but it wasn't clear to me that came from inside glue. |
But are you sure it is always a tuple? The |
a1d114c was triggered on |
In principle APE 14 mandates that a tuple is returned if there are >coordinates. But there may still be cases where this doesn't happen?
Is there a test failure still where this is not caught? Or can you come up with a failing example? |
Strangely it seems to pass in most of the py310 envs, but none of the others. But on my Mac it's passing Pythons 3.9-3.11... Very weird. |
I think this should be fixed - it was an issue with LegacyCoordinates. Not quite sure why it would fail only on some Python versions though... Let's see if the CI is happy. |
I think this broke Jdaviz, see log at https://github.com/spacetelescope/jdaviz/actions/runs/3954350017/jobs/6771598108
|
Investigating! |
Seems they are all failing on |
Does this mean it must not return a tuple for the single coordinate case? Specifically should |
I have fixed this in a glue-astronomy PR, could you take a look at it? (Can't link to it on phone) |
glue-core needs a release. We see failure in Jdaviz now because glue-astronomy is released but not this PR. |
These are the updates currently in Bug Fixes
Other Changes
Still open
But in addition there is a new regression in
|
Found this while working on the tick labels in profile viewer.