Skip to content

Commit faffd70

Browse files
committed
Remove annotations from pop view
1 parent c3a22c7 commit faffd70

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

spynnaker/pyNN/models/populations/population_view.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ class PopulationView(PopulationBase):
6868
Selector to Id is actually handled by :py:class:`~.AbstractSized`.
6969
"""
7070
__slots__ = (
71-
"__annotations",
7271
"__indexes",
7372
"__label",
7473
"__mask",
@@ -77,7 +76,9 @@ class PopulationView(PopulationBase):
7776
"__vertex",
7877
"__recorder")
7978

80-
__realslots__ = frozenset("_PopulationView" + item for item in __slots__)
79+
__realslots__ = frozenset(
80+
["_PopulationView" + item for item in __slots__] +
81+
["_PopulationBase__annotations"])
8182

8283
def __init__(
8384
self, parent: Union[Population, 'PopulationView'],
@@ -114,7 +115,6 @@ def __init__(
114115
if label is None:
115116
label = f"{parent.label}:{selector}"
116117
self.__label = label
117-
self.__annotations: Dict[str, Any] = dict()
118118

119119
# Get these two objects to make access easier
120120
# pylint: disable=protected-access
@@ -302,7 +302,7 @@ def describe(self, template: str = 'populationview_default.txt',
302302
"parent": self.parent.label,
303303
"mask": self.mask,
304304
"size": self.size}
305-
context.update(self.__annotations)
305+
context.update(self.annotations)
306306
return descriptions.render(engine, template, context)
307307

308308
def find_units(self, variable: str) -> str:

0 commit comments

Comments
 (0)