From fc5a39d0e8136459bccfd29442c8c79474333a33 Mon Sep 17 00:00:00 2001 From: PONS Date: Mon, 14 Sep 2026 11:29:57 +0200 Subject: [PATCH] Remove bug in error reporting --- pyaml/lattice/simulator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyaml/lattice/simulator.py b/pyaml/lattice/simulator.py index 81092825..071d66a8 100644 --- a/pyaml/lattice/simulator.py +++ b/pyaml/lattice/simulator.py @@ -401,7 +401,7 @@ def get_at_elems(self, element: Element) -> list[at.Element]: identifier = self._linker.get_element_identifier(element) element_list = self._linker.get_at_elements(identifier) if not element_list: - raise PyAMLException(f"{identifier} not found in lattice:{self._cfg.lattice}") + raise PyAMLException(f"{identifier} not found in lattice:{self._lattice}") return element_list else: # By list @@ -411,7 +411,7 @@ def get_at_elems(self, element: Element) -> list[at.Element]: names = [] for name in nameList: if name not in self._elements_indexing: - raise PyAMLException(f"{name} not found in lattice:{self._cfg.lattice}") + raise PyAMLException(f"{name} not found in lattice:{self._lattice}") elts = self._elements_indexing[name] names.extend(elts) return names @@ -424,7 +424,7 @@ def get_at_elems(self, element: Element) -> list[at.Element]: return [self.ring[idx] for idx in indices] else: if name not in self._elements_indexing: - raise PyAMLException(f"{name} not found in lattice:{self._cfg.lattice}") + raise PyAMLException(f"{name} not found in lattice:{self._lattice}") elts = self._elements_indexing[name] if indices is None: return elts