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 

> > 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
>
>
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov___
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss


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


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
___
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss


[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
mac...@wojcikowski.pl
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov___
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss