Skip to content

Bug : Wrong depiction with large carbon chains containing double bonds #20

@Ghriann

Description

@Ghriann

Hello folks, nice work on this project !

I'm encountering a bug using this input SMILES : CC/C=C\C/C=C\C/C=C\C/C=C\C/C=C\C/C=C\CCCCC(=O)S

Image

The correct molecule is, as drawn by MarvinJS :

Image

The cycle should not be there, I believe that it's because the software tries to avoid a collision between the two ends of the molecule.

Steps to reproduce

svg_from_smiles('CC/C=C\C/C=C\C/C=C\C/C=C\C/C=C\C/C=C\CCCCC(=O)S', 'output.svg')

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions