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
Refactor APLpy to use WCSAxes #239
Conversation
@astrofrog - I'm glad to see |
@keflavich - I don't have answers to all those questions yet, but the idea is to make sure it's 100% backward-compatible in terms of API. However, we can't guarantee that the output will look exactly the same (in fact, some defaults relating to the tick label spacing may be different). I'll let you know once this is ready for testing (I don't think the tests pass yet). |
The remaining failure is due to the pixel scale stuff, I need to refactor to use the Astropy 1.0 functions. |
With the latest commit, we're now removing a total of 2200 lines or so! |
76e15da
to
27c4cc7
Compare
The remaining failure is due to astropy/astropy#3506 |
841fb84
to
ad9b66d
Compare
Note to self: some of the reference images have changed in ways that are not backward-compatible, so need to investigate this. |
0c08c9a
to
1c9b4f9
Compare
bad181f
to
9703bfb
Compare
9703bfb
to
8577c73
Compare
8577c73
to
b468a79
Compare
b468a79
to
366d49b
Compare
c70c1f6
to
874bdd7
Compare
874bdd7
to
7568d33
Compare
@keflavich - I think I'd like to merge this before it grows anymore. You can see the latest documentation here: http://aplpy-preview.readthedocs.io/en/latest/ Where you'll see I've taken a stab at clarifying the relation between APLpy and WCSAxes. Do you have any objections to me merging this and then continuing in separate PRs? The test coverage has already gone up a bit, but I'd like to get it closer to 100% if possible to really make sure the API is going to be backward-compatible. I'll also add aplpy.legacy in a separate PR to not clutter things here. |
@astrofrog I'm in favor of merging and moving on. In most of my latest work, I've switched over to 100% wcsaxes, but some things (e.g., the |
version=VERSION, | ||
description=DESCRIPTION, | ||
scripts=scripts, | ||
install_requires=['astropy', 'numpy', 'matplotlib'], | ||
provides=[PACKAGENAME], | ||
install_requires=metadata.get('install_requires', 'astropy').strip().split(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you didn't add 'install_requires' to the metadata, isn't mpl in fact required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is, I'll add that, thanks!
@keflavich - thanks! |
I know I'm late to the commenting party but I'm so happy to see this merged! |
This is work by @anizami that was in the
wcsaxes-integration
branch which I have now rebased.My plan in the long term is to:
pip install aplpy --pre
so that it can get some testing for a while. I also plan to addaplpy.legacy
to this branch which will be a frozen version of APLpy 1.0. Then people who really need to keep the old behavior can dofrom aplpy.legacy import FITSFigure
.Main to-dos for this PR:
#TODO
s in codeLatest status
This PR is almost complete. I think the public API should be pretty much backward-compatible,
though the resulting plots will not be (in most cases they look better in the new version).