-
Notifications
You must be signed in to change notification settings - Fork 153
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
Replace old coordinate transformation functions from APLpy by Astropy #578
Conversation
156dcd8
to
fc5118b
Compare
Remaining todo: add conversion accuracy tests (just a couple) to make sure it's all good. |
I'm going to try and refactor the coordinate conversions as a plugin since they are domain-specific (as a general rule, I guess any domain-specific stuff should be plugin-ized?) |
This now includes some refactoring into a plugin. @ChrisBeaumont - a couple of questions:
Once we settle on the above questions, I'll add conversions between the main common systems (ICRS, FK4, FK5, and Galactic). |
5aa68b5
to
f3fdac8
Compare
Deprecating sounds fine. They are almost never useful On Saturday, February 28, 2015, Thomas Robitaille notifications@github.com
Chris Beaumont |
I have now deprecated the single functions for coordinate conversions, and added a few more for the class-based helper. I also added the ability to give a helper class a display name for the drop-down menu so it doesn't have to use the class name: Now one downside of the approach I am using to create the link classes is that the result (once glued) looks like: which is ugly because of the 'forward' and 'backward'. In addition to that, I think only two links should be shown because celestial coordinates are always converted in pairs. I'll need to think about it more but @ChrisBeaumont, if you have any thoughts, let me know! |
I've now made it so that the name of a PartialFunction includes the class name which I think makes it more readable: I also added accuracy tests for the coordinate transforms. @ChrisBeaumont - this is now ready for review! |
Looks good! |
fe321d2
to
42e7d03
Compare
…o a new file for deprecated functions. Also introduced a ‘display’ attribute on MultiLink helpers which can provide a nicer label in the drop-down menu.
42e7d03
to
f7e0716
Compare
Replace old coordinate transformation functions from APLpy by Astropy
This requires Astropy 0.4 in order to work.
Note that Astropy now allows us to have many more kinds of coordinate conversion so we may want to try and think of a more general way to handle these. I think this should actually be developed as a plugin really (a default plugin, but a plugin nevertheless).