Skip to content

Commit

Permalink
Merge pull request #2607 from terhorstd/3.4-develop-userdict-pick
Browse files Browse the repository at this point in the history
Cherry-picked changes to add `userdict` in PyNEST
  • Loading branch information
terhorstd committed Feb 13, 2023
2 parents e95a775 + 0ba7a8b commit 1410662
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pynest/nest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,13 @@ def __dir__(self):
k for k, v in vars().items() if isinstance(v, KernelAttribute) and v._readonly
)

userdict = {}
"""
The variable userdict allows users to store custom data with the NEST kernel.
Example: nest.userdict["nodes"] = [1,2,3,4]
"""


def _setattr_error(self, attr, val):
"""
Expand Down

0 comments on commit 1410662

Please sign in to comment.