Re: [Open Babel] Copy format in Pybel

2012-11-09 Thread Maciek Wójcikowski
That was just a proof of concept piece of code. I wanted to process some molecules and try to leave them intact. Thanks for information. Pozdrawiam, | Best regards, Maciek Wójcikowski mac...@wojcikowski.pl 2012/11/8 Geoffrey Hutchison geo...@pitt.edu Is pybel suppose to support 'copy'

[Open Babel] Copy format in Pybel

2012-11-08 Thread Maciek Wójcikowski
Is pybel suppose to support 'copy' format? I try to make it work, but it generates empty string. Proof of concept: mol = pybel.readstring(smi, c1=CC=CC=c1) mol.write('copy') '' I'm on latest SVN openbabel + CentOS 6. Pozdrawiam, | Best regards, Maciek Wójcikowski

Re: [Open Babel] Copy format in Pybel

2012-11-08 Thread Geoffrey Hutchison
Is pybel suppose to support 'copy' format? I try to make it work, but it generates empty string. No, the copy format relies on the C++ stream code. But why would you need it? In Python, you *have* the original file or string. So I'm a bit confused. -Geoff