To conclude: this small workaround works - but great care must be taken into checking the structures: -------------------------------------------------- import pybel, openbabel mol=pybel.readfile("cdx", "benzene_acs.cdx").next() factor=1.39/1.89 # this is the error of the bond length: real value/wrong one for each in mol.atoms: x=each.coords[0]*factor y=each.coords[1]*factor z=each.coords[2]*factor each.OBAtom.SetVector(x,y,z) mol.addh() output = pybel.Outputfile("mol2", "benzene_acs.mol2","overwrite=True") output.write(mol) output.close() --------------------------------------------------
hope this will help thank you guys for this wonderful software and those lovely python libraries! :) andrea ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss