You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I saw a question on the discussion forum about using the between keyword of HydrogenBondAnalysis.
After looking into it I've found an issue whereby using the between keyword leads to the incorrect donor-atom distances being returned. This is because when the hydrogen bonds are filtered to remove those formed by atoms not in the between selection, the donors, hydrogens, and acceptors are filtered but not the distances.
The donor-hydrogen-acceptor angles are not affected because these are calculated after the filtering has been done.
Hi, I saw a question on the discussion forum about using the
between
keyword ofHydrogenBondAnalysis
.After looking into it I've found an issue whereby using the
between
keyword leads to the incorrect donor-atom distances being returned. This is because when the hydrogen bonds are filtered to remove those formed by atoms not in thebetween
selection, the donors, hydrogens, and acceptors are filtered but not the distances.The donor-hydrogen-acceptor angles are not affected because these are calculated after the filtering has been done.
Code to reproduce the behavior
Output:
The timestep, donor, hydrogen, and acceptor atoms, and the angle are all correct.
However, the donor-atom distance (5th column) is wrong.
I'll try to find some time in the next couple of days to submit a fix.
Current version of MDAnalysis
python -c "import MDAnalysis as mda; print(mda.__version__)"
)2.5.0-dev0
python -V
)?Python 3.10.8
macOS 12.6.3
The text was updated successfully, but these errors were encountered: