From f3b325a37e83cd29266ebb815520001aafa94792 Mon Sep 17 00:00:00 2001 From: Gerd Duscher <50049264+gduscher@users.noreply.github.com> Date: Sat, 27 Jan 2024 17:13:33 -0500 Subject: [PATCH] Update crystal_tools.py --- pyTEMlib/crystal_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyTEMlib/crystal_tools.py b/pyTEMlib/crystal_tools.py index fa270bae..a4c1bfc1 100644 --- a/pyTEMlib/crystal_tools.py +++ b/pyTEMlib/crystal_tools.py @@ -287,7 +287,7 @@ def ball_and_stick(atoms, extend=1, max_bond_length=0.): for (k, s) in bond_matrix.keys(): if k > s: del_double.append((k, s)) - for key in del_double: + for key in del_double[::-1]: bond_matrix.pop(key) if super_cell.info is None: