Re: [OpenBabel-Devel] Binary serialization of OBMol objects

2012-01-17 Thread Jérôme Pansanel
Hi, The implementation of the new stereochimestry code is over. It works for Pgchem and Mychem (== we have the same results as obgrep). Here's a sample from the code: Serialization: vector::iterator data; vector stereoData; if (mol.HasData(OBGenericDataType::StereoData)) { stereoData =

Re: [OpenBabel-Devel] Binary serialization of OBMol objects

2011-12-09 Thread Jérôme Pansanel
Hi, I will wait for the release of Mychem 0.9.0 (it is based on Open Babel 2.3.0). Ernst-Georg, I have started the serialization of the OBCisTransStereo and OBTetrahedralStereo objects. I will send you the code next week. Cheers, Jerome On ven., 2011-12-09 at 11:15 +, Ernst-Georg Schmid wr

Re: [OpenBabel-Devel] Binary serialization of OBMol objects

2011-12-09 Thread Ernst-Georg Schmid
Hi, >The OBChiralData isn't used anymore. Also the functions >OBAtom::IsClockwise, and OBAtom::IsAntiClockwise are obsolate. >Instead, you should serialize the OBCisTransStereo and >OBTetrahedralStereo data objects. thank you. This was the missing link. Best regards, Ernst-Georg -

Re: [OpenBabel-Devel] Binary serialization of OBMol objects

2011-12-08 Thread Tim Vandermeersch
Hi, The OBChiralData isn't used anymore. Also the functions OBAtom::IsClockwise, and OBAtom::IsAntiClockwise are obsolate. Instead, you should serialize the OBCisTransStereo and OBTetrahedralStereo data objects. See http://openbabel.org/api/2.3/group__stereo.shtml for the new stereochemistry imple

[OpenBabel-Devel] Binary serialization of OBMol objects

2011-12-08 Thread Ernst-Georg Schmid
Hello, some time ago I've developed code to un-/serialize OBMol objects to binary, which is used in pgchem and mychem. The speed increase of using this vs. SMILES input are substantial (about 5x) and for molecules without stereochemistry it is working as expected. But with stereochemistry ther