Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pyaml/lattice/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
Loading