Skip to content

Commit

Permalink
b5 - store parameters on instance for PointProcess case
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg committed Jan 23, 2024
1 parent 54497ba commit 23baff8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion patch/__init__.py
Expand Up @@ -27,7 +27,7 @@ def cached_property(f):
from .exceptions import NotConnectableError, NotConnectedError
from .interpreter import PythonHocInterpreter

__version__ = "4.0.0b4"
__version__ = "4.0.0b5"
p: "PythonHocInterpreter"
h: "PythonHocInterpreter"

Expand Down
6 changes: 3 additions & 3 deletions patch/objects.py
Expand Up @@ -9,7 +9,7 @@


_registration_queue = []
_had_pointers_wrapped = set()
_had_pointers_wrapped = {}


def _safe_call(method):
Expand Down Expand Up @@ -188,8 +188,8 @@ def _init_pointers_wrappers(self):
if is_ptr:
setattr(cls, k, PointerWrapper(k))
params.append(k)
cls.parameters = params
_had_pointers_wrapped.add(hoctype)
_had_pointers_wrapped[hoctype] = params
self.parameters = _had_pointers_wrapped[hoctype]


class Section(PythonHocObject, Connectable, WrapsPointers):
Expand Down

0 comments on commit 23baff8

Please sign in to comment.