Skip to content
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

A small fix for #47 #48

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/pmx/ligand_alchemy.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,9 +714,9 @@ def _mapH( self, nfoo, nbar ):
# when n1 and n2 have an equal number of them bound
nH1 = self._countHydrogens(nb1)
nH2 = self._countHydrogens(nb2)
if nH1!=nH2:
continue
# also skip the rest of the loop if there are no neighbour hydrogens
# Related to issue #47. Hydrogens can be mapped for CH2 and CH3 for instance.
# Thus, in case of nH1 != nH2, we can proceed to mapping hydrogens
# But we need to skip the rest of the loop if there are no neighbour hydrogens
if nH1==0 or nH2==0:
continue

Expand Down