I was only able to do it for one molecule at a time, not a couple or
multiple. The xml file generated was thru Outputfile() and thus a file path
is required. How to generate as a string? I'm guessing Outputfile is not
the way to go because to output multiple files it just overlaps the
structures and tags multiple xml declarations.

On Thu, Dec 27, 2018, 11:28 Dmitri Maziuk via OpenBabel-discuss <
openbabel-discuss@lists.sourceforge.net wrote:

> On Thu, 27 Dec 2018 07:55:08 -0500
> Spencer Trinh <trinh.kc...@gmail.com> wrote:
>
> > I tried using opt={ ’u’:None, ’C’:None, ’x’:None},
> >
> > however the XML file still encounters a parsing error:
>
> So you see, the issue is not how to generate an SVG dynamically ;)
>
> Did you try generating them as strings with Molecule.write() and
> sending them out from flask? -- See how the browser will render that.
> You can easily add 'x: None' after the first one of course.
>
> --
> Dmitri Maziuk <dmaz...@bmrb.wisc.edu>
>
>
> _______________________________________________
> OpenBabel-discuss mailing list
> OpenBabel-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
>
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to