Skip to content

Commit

Permalink
fixed clean2d for stereo bonds.
Browse files Browse the repository at this point in the history
  • Loading branch information
stsouko committed Mar 4, 2021
1 parent bcf0457 commit bc458ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CGRtools/algorithms/calculate2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def clean2d(self):
"""
plane = {}
smiles, order = self._clean2d_prepare()
if '\\' in smiles:
smiles = smiles.replace('\\', '\\\\')
xy = ctx.eval(f'$.clean2d("{smiles}")')

shift_x, shift_y = xy[0]
Expand Down

0 comments on commit bc458ef

Please sign in to comment.