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
Remove code deprecated in 0.3 and 0.4 #2990
Conversation
By the way, we can also decide to not merge this, I don't feel strongly about it, but we should remove code that we agree should be removed to avoid clutter. |
👍 for removing the deprecated items. |
This looks great to me, once #2991 is merged. |
Looks like I missed the entire discussion and resolution, but, yes, looks good to me, assuming #2991 fixes the Travis fail. |
👍 |
Great! |
👍 |
@embray - shall I also remove deprecated code from io.fits or will you see to that separately? |
I'll see to that separately (I have already done that in PyFITS so it's just a matter of merging over). |
👍 once #2991 is merged and makes the tests pass. |
26ff148
to
b468fde
Compare
@nhmc @aconley - I found I had to update
Shouldn't |
# we need zmax here to pick the right solution for | ||
# angular_diameter_distance and related methods. | ||
assert np.allclose(z, funcs.z_at_value(f, fval, zmax=1.5)) |
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.
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.
For the Planck 13 cosmology (flat, w=-1), Ok, de_density_scale, and w are redshift independent. So z_at_value can't invert the function. If you want to test those three, you will need to create a more 'interesting' cosmology.
@astrofrog -- other than the round trip test, looks good. And for the round trip test, I don't think there's a problem, it's just that you have to decide if you want to explicitly test those functions (which will require a different test cosmology). |
@aconley - ok, thanks for the clarification! Since there were no objections above, I'll go ahead and merge :) |
Remove code deprecated in 0.3 and 0.4
Changes that remove more code than they add are always the best. |
Remove code deprecated in 0.3 and 0.4
My understanding of the deprecation process is that we are deprecating functions/classes/methods in one stable version and removing it in the next. This PR removes code marked as deprecated in 0.3 and 0.4 since it should be removed before 1.0. I was thinking it would make sense to do this sooner rather than later so that packages that test against 1.0 won't see these functions disappear at the last minute before the 1.0 release. We shouldn't backport this to v0.4.x though.
@embray - there is actually a fair bit of deprecated code in astropy.io.fits - shall we remove it soon so that it doesn't get included in 1.0?
cc @eteq @embray @mdboom @taldcroft @nhmc @aconley (since this includes changes in one of your subpackages)