Skip to content

Commit 80c24bf

Browse files
committed
Make getNodeForName method match entire name
1 parent 59921b3 commit 80c24bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/orbit/lattice/AccLattice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def getNodeForName(self, name):
117117
"""
118118
nodes = []
119119
for node in self.__children:
120-
if node.getName().find(name) == 0:
120+
if node.getName() == name:
121121
nodes.append(node)
122122
if len(nodes) == 1:
123123
return nodes[0]

0 commit comments

Comments
 (0)