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