From 43e4a85662d5c5a93ab7a6a7c74a5e28eff946f0 Mon Sep 17 00:00:00 2001 From: Gerd Duscher <50049264+gduscher@users.noreply.github.com> Date: Sat, 27 Jan 2024 17:32:28 -0500 Subject: [PATCH] Update crystal_tools.py --- pyTEMlib/crystal_tools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyTEMlib/crystal_tools.py b/pyTEMlib/crystal_tools.py index 9bf47ff4..318aaedb 100644 --- a/pyTEMlib/crystal_tools.py +++ b/pyTEMlib/crystal_tools.py @@ -289,7 +289,9 @@ def ball_and_stick(atoms, extend=1, max_bond_length=0.): del_double.append((k, s)) del_double.sort(reverse=False) for key in del_double: - bond_matrix.pop(key) + # Todo: why is ther a key error + # bond_matrix.pop(key) + pass if super_cell.info is None: super_cell.info = {}