Skip to content

Coordinates subpackage - #471

Merged
eteq merged 199 commits into
astropy:masterfrom
eteq:coordinates
Dec 10, 2012
Merged

eteq merged 199 commits into
astropy:masterfrom
eteq:coordinates

Conversation

@eteq

@eteq eteq commented Nov 10, 2012

Copy link
Copy Markdown
Member

This is the long-awaited astropy.coordinates package. You can look at the sphinx docs this generates at http://eteq.github.com/astropy/coordinates/index.html . All the tests passed (at least for me locally - we'll see what Travis says).

There are a variety of enhancements, including:

  • Expanding the range of coordinate systems to include a proper ICRS -> CIRS -> TIRS conversion chain.
  • add a Site object to allow a way to get HorizontalCoordinates from othere kinds of celestial coordinates (and vice versa)
  • supporting arrays
  • supporting uncertainties

All of these are goals for 0.3, though - once this is merged, I can add issues for them.

eteq and others added 30 commits November 10, 2012 01:49
This file should be removed once the examples have been converted to the
testing framework
@eteq

eteq commented Dec 7, 2012

Copy link
Copy Markdown
Member Author

@astrofrog re: angule_utilities stuff - a lot of this is legacy code that I think we'll want to revamp later anyway, so I haven't adjusted them. I agree with all the things you said, I just don't want to go in and fix stuff we'll remove/re-work anyway. (and I think some of it is addressed in @iguananaut's PR)

Aside from that, I think I've addressed all your comments - I still need to merge in @iguananaut 's stuff, but once I do you should see all the fixes.

@astrofrog

Copy link
Copy Markdown
Member

@eteq - awesome, thanks for addressing my comments! I've opened an issue in #544 for integrating Quantity into astropy.coordinates. I think we should probably merge this soon after you have integrated @iguananaut's changes, as I it will be easier to focus on improving various aspects in a more atomic way.

I've also added an issue to keep track of the implementation of array support in astropy.coordinates.

@eteq

eteq commented Dec 8, 2012

Copy link
Copy Markdown
Member Author

@cdeil - actually, I suppose* we should say the standard way to copy is:

c1 = ICRSCoordinates(...)
c2 = ICRSCoordinates(c1)

I think that's functionally equivalent to copy.copy... the potential gotcha is that copy.copy and copy.deepcopy could be different here (because coordinates contain Angle objects), but I think it's irrelevant because coordinates are basically immutable (in which case copy and deepcopy are effectively the same).

So I'll add a quick example that says you should do it the way I've outlined above, but I think copy also works just fine.

@eteq eteq mentioned this pull request Dec 8, 2012
@eteq

eteq commented Dec 8, 2012

Copy link
Copy Markdown
Member Author

I've now merged @iguananaut's PR, aside from one commit (see eteq#7 for more details if you're interested - I think the commit I ignored is ok, but if there is disagreement it can easily be adjusted in a PR against master once this is merged).

@eteq

eteq commented Dec 8, 2012

Copy link
Copy Markdown
Member Author

I think this integrates all the comments up to this point. Assuming the tests pass, I think it's good to merge.

If no major problems crop up, let's say Sunday night/Monday morning we'll go ahead and merge!

@astrofrog

Copy link
Copy Markdown
Member

@eteq - it looks like a test is failing on Python 3.1 and 3.2. Once this is fixed, feel free to merge!

@eteq

eteq commented Dec 10, 2012

Copy link
Copy Markdown
Member Author

I managed to track down the source of the 3.x error. It appears the sys.exc_info behavior is different in python 2.x vs. 3.x (in the latter it doesn't work outside except clauses, while the former uses the most recent exception), and thus the format_exception function @iguananaut added failed in one place. I've worked around this in a way that may not be ideal, as it provides less information in some error cases under py 3.x than 2.x, but the tests are now passing.

While Travis reports the last two commits here as having failed, that's a bug in travis - the changes in @64c556c fixed it, but the travis build seemed to be one build behind there (the tracebook shows code from the previous commit), while @29fe07b has all the tests actually passing, but Travis hung on one of the egg_info builds due probably to some network problem that has nothing to do with astropy.

@iguananaut - you may want to look into this further (the changes I made in @64c556c) and implement a better fix - I'm not entirely sure what you intended with that function so I didn't want to change it drastically. I'll continue with the plan of merging this tomorrow, and you can do another PR if you get to it in time, or if not you can just work directly in master after this is merged - that should only affect the format_exception function which is used nowhere else so far.

@eteq

eteq commented Dec 10, 2012

Copy link
Copy Markdown
Member Author

I'm going to go ahead and merge this now (as I said above, the failure in the last commit is not a code failure, but a temporary glitch in travis).

Thanks to @adrn @demitri and @iguananaut for your code contributions. And thanks to @astrofrog @cdeil @taldcroft and @wkerzendorf for your valuable feedback!

eteq added a commit that referenced this pull request Dec 10, 2012
@eteq
eteq merged commit 02c4f44 into astropy:master Dec 10, 2012
@astrofrog

Copy link
Copy Markdown
Member

Yay, congrats! \o/ Excellent work @eteq, @adrn, and @demitri for the implementation.

@embray

embray commented Dec 10, 2012

Copy link
Copy Markdown
Member

Woo! With this in I think we can move toward a RC maybe by the end of this week; though I need to double check what else is still open. It's fine if there are still a few small unsettled issues.

@embray

embray commented Dec 10, 2012

Copy link
Copy Markdown
Member

And that's annoying about the sys.exc_info() thing, though I have some vague recollection of a discussion of why they did that. Your workaround seems fine for now; I'll see if I can come up with something better later.

@astrofrog

Copy link
Copy Markdown
Member

@iguananaut - we should definitely have an RC before the end of the world! (21 Dec) ;-)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One more bug! Incomplete sentence here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Whoops - thanks for pointing this out! @iguananaut fixed it in master in 99712bfa

keflavich pushed a commit to keflavich/astropy that referenced this pull request Oct 9, 2013
@eteq
eteq deleted the coordinates branch May 3, 2015 17:17
jeffjennings pushed a commit to jeffjennings/astropy that referenced this pull request Jul 2, 2025
Add Eero Vaher as additional astropy.coordinates maintainer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants