Skip to content

Commit

Permalink
Fixed bug in RadicalResolver._check_conjugation()
Browse files Browse the repository at this point in the history
  • Loading branch information
joegilkes committed Dec 1, 2022
1 parent 7c054b5 commit 4fd3212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion obcr/obcr.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def _check_conjugation(self, obatom: ob.OBAtom, neigh: ob.OBAtom):

for nnidx in obneighidx:
# Don't form the bond if there is already conjugation in place.
if self.obmol.GetBond(neigh.GetIdx(), nnidx).GetBondOrder > 1:
if self.obmol.GetBond(neigh.GetIdx(), nnidx).GetBondOrder() > 1:
return True
# Don't form the bond if skipping it would form a conjugated system.
else:
Expand Down

0 comments on commit 4fd3212

Please sign in to comment.