Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-picked changes to add userdict in PyNEST #2607

Merged
merged 3 commits into from
Feb 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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