On Dec 18, 2024, at 1:26 PM, Eric Pettersen via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:

so if you use "for i, nb in enumerate(atom.neighbors):" to loop through the neighbor atoms

Probably even better:  for nb, bond in zip(atom.neighbors, atom.bonds):

--Eric