-
Notifications
You must be signed in to change notification settings - Fork 664
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
HydrogenBondAutoCorrel uses deprecated features of numpy #2987
Comments
So I didn't really keep up with the happenings of #2791, but the main comment does include: "This function can also replace the hbonds.hbond_autocorrel module. However, we haven't deprecated this module here as that is being addressed by PR #2746" It might be that this can all be removed for v2.0 (assuming we deprecate for 1.01)? Maybe @bieniekmateusz and/or @p-j-smith know better here? |
Sorry for the confusion - perhaps @bieniekmateusz and I should have deprecated/removed After taking another look at Other than this, it should be okay to do as @IAlibay suggests and remove for 2.0 and deprecate for 1.01. |
@p-j-smith @bieniekmateusz Just catching up here as we are planning to aim for a final 1.x release at the end of this week. Are we ok deprecating |
Hi @IAlibay, it should be okay to go ahead and deprecate |
Thanks, for the quick response @p-j-smith! |
pinging @richardjgowers here, apparently there might be a missing overlap in functionality between the two codes? If so we should just fix hbond_autocorrel. |
After discussions with @richardjgowers the plan will instead be to: |
Fixes #2987 ## Work done in this PR * Fixes the hbond_autocorrel exclusion code path * removed deprecated numpy usage in hbond autocorrel * added _in2d * correct distances docs * added C sources for updated _cutil
Fixed in #3242 - needs forward porting |
Expected behavior
Running the tests throws no warning, and the library does not use deprecated features of the libraries it depends on.
Actual behavior
Running the tests warns about HydrogenBondAutoCorrel using deprecated features of numpy:
Code to reproduce the behavior
pytest analysis/test_hydrogenbondautocorrel.py
Current version of MDAnalysis
python -c "import MDAnalysis as mda; print(mda.__version__)"
) 2.0.0-dev0 64a7c05python -V
)? Python 3.8.5The text was updated successfully, but these errors were encountered: