> The operations are aimed at use from the command-line and so I would
> recommend using Python's subprocess.

Well, I think you can employ them in Python directly. This is untested, but 
something like this would work:

>> confab = openbabel.OBOp.FindType("confab")
>> confab.Do(myOBMol, "options")

where "options" is a space-delimited set of options.

Looking at the code, it seems like none of the Op classes actually parse the 
option text, which seems like a bug (i.e., a never-implemented feature).

As Noel said, the src/ops/opconfab.cpp code is more-or-less command-line driven 
and using the subprocess support seems to be the best current approach.

-Geoff
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to