Skip to content

Commit

Permalink
Merge pull request #42 from austin-hoover/dev
Browse files Browse the repository at this point in the history
Make getNodeForName method match entire name
  • Loading branch information
azukov authored Jan 21, 2025
2 parents 6760788 + 80c24bf commit 709a5cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/orbit/lattice/AccLattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def getNodeForName(self, name):
"""
nodes = []
for node in self.__children:
if node.getName().find(name) == 0:
if node.getName() == name:
nodes.append(node)
if len(nodes) == 1:
return nodes[0]
Expand Down

0 comments on commit 709a5cc

Please # to comment.