Skip to content

Commit

Permalink
Update ligand_alchemy.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pbuslaev authored Aug 20, 2024
1 parent 49dc83e commit bcf15aa
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit bcf15aa

Please sign in to comment.