Re: [Open Babel] cmake errors regarding perl bindings

2013-11-11 Thread Anil Kumar
Final update: The perl bindings also work fine with this build. I only had to update PERL5LIB to get going. Thanks, AK On Tuesday, November 5, 2013 11:40 PM, Anil Kumar wrote: Dear Dr. Hutchsison, I was able to compile  .../master.zip which you pointed out. Thank you.  Further, this is wh

[Open Babel] bonds in pybel

2013-11-11 Thread Dimitri Maziuk
Hi guys, one for the next release wishlist: is it possible to expose bonds as an iterable, similar to atoms? -- Dimitri Maziuk Programmer/sysadmin BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu signature.asc Description: OpenPGP digital signature ---

Re: [Open Babel] bonds in pybel

2013-11-11 Thread Fredrik Wallner
Hi, Since pybel doesn’t have a ”bond-concept” at the moment, I suppose it needs to be defined first. But if you will settle for OBBonds, the following short generator could work: def pybelbonditer(pybmol): for i in range(pybmol.OBMol.NumBonds()): yield pybmol.OBMol.GetBond(i) It’s

Re: [Open Babel] bonds in pybel

2013-11-11 Thread Fredrik Wallner
Or, if you import openbabel you can directly do: for bond in openbabel.OBMolBondIter(obmol): print bond.GetBeginAtomIdx(), bond.GetEndAtomIdx(), bond.GetBondOrder() 12 nov 2013 kl. 07:55 skrev Fredrik Wallner : > Hi, > > Since pybel doesn’t have a ”bond-concept” at the moment, I suppose it