Repository navigation
Fix WCSAxes frame transformation for non matching units - #20600
Conversation
|
Hi 👋 and thank you for your contribution! 🙏 This pull request is being closed automatically - but don't worry, this is not the end, and we may re-open it. For some background, we have recently started seeing a rapid increase in the number of pull requests opened. Some of these are from good-faith humans, but some of which are from autonomous LLM agents or humans using LLMs who do not have a genuine understanding of, or interest in, the project. We are therefore auto-closing pull requests from new contributors, but if you are a good-faith human, we want to make sure your pull request gets considered! So if you would like us to re-open your pull request so that it gets reviewed, you need to do two things:
The second step is important, as we may otherwise miss notifications about this pull request. To be clear, our AI policy does allow the use of LLMs as part of contributions, but we need to see authentic engagement and understanding from humans making the contribution. Notes for maintainersIf you know this is a genuine user and the PR is is compliance with the AI policy, you may re-open this straight away. After two successful merged pull requests, the user will be added to the allowlist and future PRs will no longer be closed automatically. This user has not made any pull requests to this repository prior to this one. In addition, here are some statistics on the user's activity on GitHub:
|
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
|
I attest that @alasdairwilson is a human who works on sunpy |
|
Oh wait no, |
astrofrog
left a comment
There was a problem hiding this comment.
It looks like test_wcsapi_2d_celestial_arcsec is broken in the visual tests, so will need to be fixed before we can merge this.
|
Dang, I'll have a look, I guess it is the inverse problem we were having with deg <-> arcsec |
|
Re: #20600 (comment) But who can attest for @Cadair ? 😆 |
It's bots all the way down... 😆 |
All I can say it's misty hilltop, so the pfp is suspicious. |
all good now _transform_plot_args uses get_transform("world") it looks like this was missed when the relaxing to non-degree units was done, it was mistakenly passing degrees to the transform plot coords but that was cancelled out by the fact that the units not mismatching meant the transform wasn't applied? Or something, can't say I fully understand the process other than I think its fixed now. |
…600-on-v8.0.x Backport PR #20600 on branch v8.0.x (Fix WCSAxes frame transformation for non matching units)
…600-on-v7.2.x Backport PR #20600 on branch v7.2.x (Fix WCSAxes frame transformation for non matching units)
I found this because sunpy has started building a Map's WCS with preserve_units=True so that it keeps the arcsecond units of the FITS header (sunpy/sunpy#8875). Anything drawn from world coordinates, like a quadrangle, onto our wcsaxes then comes out as if it was calculated assuming units in degrees.
This is because
WCSAxes.get_transformreturns an incorrect transform when given a coordinate frame, if the world units of the axes' WCS are not degrees but the frames otherwise match.Super simple because CoordinateTransform is already computes
same_unitsso we just need to check it at the same time we checksame_frame.AI Disclosure
N/A