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

Fix a bug in NDData constructor where WCS was not validated correctly #11985

Merged
merged 4 commits into from Oct 20, 2021

Conversation

Cadair
Copy link
Member

@Cadair Cadair commented Jul 28, 2021

We were not running the input WCS through the property setter which means it wasn't getting up-converted to a High Level WCS object which then would later break when that assumption was relied upon.

@Cadair Cadair added 💤 backport-v4.3.x on-merge: backport to v4.3.x 💤 backport-v4.0.x on-merge: backport to v4.0.x labels Jul 28, 2021
@Cadair Cadair added this to the v4.0.6 milestone Jul 28, 2021
@Cadair Cadair force-pushed the nddata_wcs_init branch 2 times, most recently from 536683f to 6c2f2ea Compare July 28, 2021 16:29
@Cadair Cadair removed the wcs label Jul 28, 2021
mwcraig
mwcraig previously approved these changes Jul 28, 2021
Copy link
Member

@mwcraig mwcraig left a comment

Choose a reason for hiding this comment

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

Thanks, this fix looks fine

@pllim pllim added the Bug label Jul 28, 2021
@pllim
Copy link
Member

pllim commented Jul 28, 2021

100 failures...

@mwcraig
Copy link
Member

mwcraig commented Jul 28, 2021

Ah, looks like the failures may be related to #11727. Essentially the issue is that the WCS cannot currently be None.

@mwcraig mwcraig dismissed their stale review July 30, 2021 02:37

Errors in CI tests

@astrofrog astrofrog modified the milestones: v4.0.6, v4.0.7 Aug 24, 2021
@Cadair
Copy link
Member Author

Cadair commented Sep 15, 2021

I have fixed the test fails by allowing ccddata to accept None when passed to the setter.

@Cadair
Copy link
Member Author

Cadair commented Oct 19, 2021

@mwcraig Can we merge this?

Copy link
Member

@mwcraig mwcraig left a comment

Choose a reason for hiding this comment

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

@Cadair -- this is ready to merge

@pllim pllim merged commit 660bc14 into astropy:main Oct 20, 2021
meeseeksmachine pushed a commit to meeseeksmachine/astropy that referenced this pull request Oct 20, 2021
meeseeksmachine pushed a commit to meeseeksmachine/astropy that referenced this pull request Oct 20, 2021
@dstansby
Copy link
Contributor

@Cadair I think you have broken the sunpy tests with this: https://app.circleci.com/pipelines/github/sunpy/sunpy/14750/workflows/ef2a05ba-d904-4c63-96ff-c262e937afd4/jobs/71735 - not sure whether there's something we need to change in sunpy or astropy?

@Cadair
Copy link
Member Author

Cadair commented Oct 21, 2021

I suspect that's a sunpy bug (we override the property but not the setter).

pllim added a commit that referenced this pull request Oct 26, 2021
…985-on-v4.3.x

Backport PR #11985 on branch v4.3.x (Fix a bug in NDData constructor where WCS was not validated correctly)
Cadair added a commit that referenced this pull request Oct 29, 2021
…985-on-v4.0.x

Backport PR #11985 on branch v4.0.x (Fix a bug in NDData constructor where WCS was not validated correctly)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug nddata 💤 backport-v4.0.x on-merge: backport to v4.0.x 💤 backport-v4.3.x on-merge: backport to v4.3.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants