-
Notifications
You must be signed in to change notification settings - Fork 663
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
Waterdynamics.HydrogenBondLifetimes nprocs > 1 appears to be broken #2511
Comments
So it looks like the root cause of the error is related to the values passed to mdanalysis/package/MDAnalysis/analysis/waterdynamics.py Lines 644 to 650 in 0dede25
Since frame is being set to ts.frame, on the first call
Setting mdanalysis/testsuite/MDAnalysisTests/analysis/test_waterdynamics.py Lines 45 to 49 in 0dede25
I am not sure if this code is working as intended (this type of multiprocessing call with the use of |
I recently saw this Maybe one of the original authors ( @alejob ?) can comment here? Otherwise we can also decide to remove the multiprocessing functionality. Are there any tests for it? |
Let me be a bit more explicit so that we can move forward: unless @alejob has a quick fix + tests that also work with the desired convention of start=0 inclusive and stop exclusive in the next two days, please remove the multiprocessing |
Expected behavior
Passing nprocs > 1, should call the multiprocessing portion of HydrogenBondLifetimes and return normally.
Actual behavior
The code fails with an import error for sys:
Fixing the code to import sys leads to an infinite loop due to a repeated attempt to re-excute the failing code block:
mdanalysis/package/MDAnalysis/analysis/waterdynamics.py
Lines 651 to 661 in 0dede25
Some extra comments
So I went back through the git history, and the removal of sys occured in the very first PR #300.
It is therefore not clear to me that this code has ever worked. That being said, it is very much possible that I'm not calling this in the right manner.
Code to reproduce the behavior
Currently version of MDAnalysis
python -c "import MDAnalysis as mda; print(mda.__version__)"
) 0.20.1 (tested on latest develop too)python -V
)? 3.7.3The text was updated successfully, but these errors were encountered: