Skip to content

Commit

Permalink
[math] upgrade variable retrival (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoming0625 committed Jan 7, 2024
1 parent c6c96fb commit 78f4b47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brainpy/_src/math/object_transform/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def vars(
nodes = self.nodes(method=method, level=level, include_self=include_self)
gather = ArrayCollector()
for node_path, node in nodes.items():
for k in dir(node):
for k in node.__dict__.keys():
if k in node._excluded_vars:
continue
v = getattr(node, k)
Expand Down

0 comments on commit 78f4b47

Please sign in to comment.