[Rdkit-discuss] bug in rdMolTransforms.SetDihedralDeg?

2013-10-22 Thread Michal Krompiec
Hello, I am trying to use the new functionality for manipulation of dihedral angles in a function similar to OpenBabel's obrotate tool. But it doesn't work: I get a ValueError exception. Here is an example that replicates the error: from rdkit import Chem from rdkit.Chem import AllChem from

Re: [Rdkit-discuss] bug in rdMolTransforms.SetDihedralDeg?

2013-10-22 Thread Paolo Tosco
Dear Michal, I have the impression that you wanted to select atoms 5,6,7,8, which do indicate the bond between the two rings, but the RDKit counts atoms starting from 0, so the tuple atoms=(5,6,7,8) should probably read atoms=(4,5,6,7) and this actually works; instead, the first tuple