Skip to content

Commit

Permalink
Revert "Fix nodeList method in Node and add global node count tracking"
Browse files Browse the repository at this point in the history
  • Loading branch information
bengineerd authored Jan 11, 2024
1 parent e5e0b3c commit 0a93868
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions python/pyrogue/_Node.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ class Node(object):
-------
"""
_nodeCount = 0

def __init__(self, *, name, description="", expand=True, hidden=False, groups=None, guiGroup=None):
"""
Expand Down Expand Up @@ -184,7 +183,6 @@ def __init__(self, *, name, description="", expand=True, hidden=False, groups=No
-------
"""
pr.Node._nodeCount += 1

# Public attributes
self._name = name
Expand Down Expand Up @@ -215,10 +213,6 @@ def __init__(self, *, name, description="", expand=True, hidden=False, groups=No
def __repr__(self):
return f'{self.__class__} - {self.path}'

@property
def nodeCount(self):
return pr.Node._nodeCount

@property
def name(self):
"""
Expand Down Expand Up @@ -565,7 +559,7 @@ def addNodes(self, nodeClass, number, stride, **kwargs):
def nodeList(self):
"""Get a recursive list of nodes."""
lst = []
for key,value in self._nodes.items():
for key,value in self.nodes.items():
lst.append(value)
lst.extend(value.nodeList)
return lst
Expand Down

0 comments on commit 0a93868

Please sign in to comment.