You have (understandably) confused two different things. atom.GetIdx() is the function you were looking for, not GetIndex().
I don't understand the question about OBMolAtomIter. This is an iterator not an indexer. Chris has argued in the past for removing all references to indices from the public API; access would just be through iterators. - Noel On 15 March 2013 11:08, scott_m <js...@cam.ac.uk> wrote: > Why does the GetAtom indexing begin at 1 but the OBMolAtomIter indexing begin > at 0? So atom=obmol.GetAtom(1) but atom.GetIndex() returns 0. > > > > -- > View this message in context: > http://forums.openbabel.org/Indexing-in-OBmol-and-OBMolAtomIter-tp4656060.html > Sent from the General discussion mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > OpenBabel-discuss mailing list > OpenBabel-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openbabel-discuss ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss