Skip to content

Fix handling of SkyCoords with N-d frame attributes - #5891

Closed
StuartLittlefair wants to merge 6 commits into
astropy:masterfrom
StuartLittlefair:patch-2
Closed

StuartLittlefair wants to merge 6 commits into
astropy:masterfrom
StuartLittlefair:patch-2

Conversation

@StuartLittlefair

Copy link
Copy Markdown
Contributor

This PR adds functionality to fix #5889 and #5890

@StuartLittlefair

Copy link
Copy Markdown
Contributor Author

The failure here looks unrelated to my changes, but something to do with remote sites. Perhaps someone with write access can restart that one failing test?

@bsipocz

bsipocz commented Mar 21, 2017

Copy link
Copy Markdown
Member

@StuartLittlefair - So these are from those bugs again that are fixed in master?

@bsipocz

bsipocz commented Mar 21, 2017

Copy link
Copy Markdown
Member

To answer my question, I see both issues on master, too. I'll have a look around whether it's possible to change the base branch of this PR, if not then this should be closed and a new one opened against master.

@bsipocz
bsipocz changed the base branch from v1.3.x to master March 21, 2017 12:43
@bsipocz

bsipocz commented Mar 21, 2017

Copy link
Copy Markdown
Member

Hmm, changing base branch clearly worked, but introduced a lot of unwanted stuff here. I'm going ahead and try to rebase this mess and force push it back to this branch. (@StuartLittlefair - I've made a backup copy of your original as bsipocz/StuartLittlefair-patch-2-copy)

@mhvk

mhvk commented Mar 21, 2017

Copy link
Copy Markdown
Contributor

Duh, I should have seen that you had a PR. I'll close mine and instead make a PR to your branch (since I think my solution is a bit more elegant...)

@mhvk mhvk mentioned this pull request Mar 21, 2017
@mhvk

mhvk commented Mar 21, 2017

Copy link
Copy Markdown
Contributor

So, I added 2 commits for the representation. Am still trying to wrap my head around the rest of the PR (might actually be better to keep them separate, sigh...).

@mhvk

mhvk commented Mar 21, 2017

Copy link
Copy Markdown
Contributor

I think the solution is not right -- transform_to is the problem, in that it doesn't do what it states it does - it should remove attributes before initializing a new class.

@StuartLittlefair

Copy link
Copy Markdown
Contributor Author

@mhvk, I only really bundled these together because I wasn't smart enough to find a simple regression test for #5889.

Perhaps the simplest way forward is for me to close this, for you to re-open your PR for #5889 and we'll look again at a separate PR for #5890, which probably does need some careful thought about what exactly transform_to should be doing?

@mhvk

mhvk commented Mar 21, 2017

Copy link
Copy Markdown
Contributor

See #5897 for a simpler fix, which combines all PRs.

@mhvk

mhvk commented Mar 21, 2017

Copy link
Copy Markdown
Contributor

OK, it seems like for now this PR probably should be closed (we can reopen if #5897 turns out to be problematic as well).

@mhvk mhvk closed this Mar 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

__repr__ method of BaseRepresentation can fail

3 participants