Skip to content

Add setters for WCS._naxis1/_naxis2 - #5454

Merged
nden merged 1 commit into
astropy:masterfrom
saimn:wcs-naxis
Nov 4, 2016
Merged

nden merged 1 commit into
astropy:masterfrom
saimn:wcs-naxis

Conversation

@saimn

@saimn saimn commented Nov 2, 2016

Copy link
Copy Markdown
Contributor

Following #5411 which replaced the _naxis1/_naxis2 attributes with properties but without adding setters. This break existing code that set these values (even if there are private, there is no other way to use the shape
information from a WCS object). See discussion in #5411

 astropy#5411 replaced the _naxis1/_naxis2 attributes with properties but
without adding setters. This break existing code that set these values
(even if there are private, there is no other way to use the shape
information from a WCS object).
@pllim pllim added the wcs label Nov 3, 2016
@pllim pllim added this to the v1.0.11 milestone Nov 3, 2016
@pllim pllim added Affects-dev PRs and issues that do not impact an existing Astropy release Bug labels Nov 3, 2016
@nden

nden commented Nov 3, 2016

Copy link
Copy Markdown
Contributor

All our code is broken too. Should we merge these while still talking about a better solution in 1.3?

@MSeifert04

Copy link
Copy Markdown
Contributor

A new and better solution would include new public attributes and/or new classes so it would be milestoned for 1.3 (or later), right?

@nden

nden commented Nov 3, 2016

Copy link
Copy Markdown
Contributor

@MSeifert04 Yes, that's right. I was simply suggesting to merge this as a temporary "restore the previous state" solution in which case it probably does not need a milestone, in any case not 1.0.11.

@MSeifert04

Copy link
Copy Markdown
Contributor

@nden I don't exactly know how milestones are handled. I guess this needs to be backported on top of the wrongdoer, also known as #5411, which is milestoned for 1.0.11.

But I just wanted to know if any better solution could be backported instead of creating setters for private attributes. These setters probably will be annoying if we make these two attributes public (
one suggestion in #5411). But if that's not the case either this PR should be merged or the PR #5411 should be reverted or not-backported. Sorry, the question was just out of curiosity. I did not want to confuse 😄

@saimn

saimn commented Nov 4, 2016

Copy link
Copy Markdown
Contributor Author

Should we merge these while still talking about a better solution in 1.3?

It would be great to restore the previous behavior first (and allow to run our unit tests again Astropy's master), while waiting for a better solution.

@nden

nden commented Nov 4, 2016

Copy link
Copy Markdown
Contributor

OK, merging this and will open a separate issue to be resolved for 1.3 release.

@nden
nden merged commit c012708 into astropy:master Nov 4, 2016
@saimn
saimn deleted the wcs-naxis branch November 4, 2016 14:04
eteq pushed a commit that referenced this pull request Dec 21, 2016
Add setters for WCS._naxis1/_naxis2
eteq pushed a commit that referenced this pull request Dec 21, 2016
Add setters for WCS._naxis1/_naxis2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Affects-dev PRs and issues that do not impact an existing Astropy release Bug wcs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants