> This only proves, that I really want to use it. Is the proof.py script 
> working correctly for anybody (attached in previous mail)? It should ouptut 
> molecules no. 5-10 out of 100 in proof.sdf

No, it doesn't work.

% python proof.py | wc
     100     100    1300

Hmm. Chris, any idea why this wouldn't work from Python?

obconversion = OBConversion()
obconversion.SetInFormat("sdf")
obconversion.AddOption('f', obconversion.GENOPTIONS, "5")
obconversion.AddOption('l', obconversion.GENOPTIONS, "10")
obmol = OBMol()

notatend = obconversion.ReadFile(obmol,"proof.sdf")
while notatend:
    print obmol.GetTitle()
    obmol = OBMol()
    notatend = obconversion.Read(obmol)


------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to