Skip to content

Commit

Permalink
heterocycles canonic charge (#187)
Browse files Browse the repository at this point in the history
* charges canonicalization
* fixed thiele.

Co-authored-by: zandmitrij <zandmitrij@gmail.com>
  • Loading branch information
stsouko and zandmitrij committed Jul 4, 2021
1 parent 03106d7 commit 0ba5060
Show file tree
Hide file tree
Showing 5 changed files with 431 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CGRtools/algorithms/aromatics.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ def thiele(self: 'MoleculeContainer', *, fix_tautomers=True, fix_metal_organics=
for n in ring:
sh[n] = 4
break

if freaks:
self.flush_cache() # flush again
self._fix_stereo() # check if any stereo centers vanished.
return True

Expand Down

0 comments on commit 0ba5060

Please sign in to comment.