Skip to content

Commit

Permalink
Refer to the _spikespace attribute as an ArrayVariable not as an Attr…
Browse files Browse the repository at this point in the history
…ibuteVariable (the reference does not change)
  • Loading branch information
Marcel Stimberg committed Aug 19, 2013
1 parent 38f24b8 commit ed5ec94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion brian2/groups/neurongroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,9 @@ def _create_variables(self):
s = Group._create_variables(self)

# Standard variables always present
s.update({'_spikespace': AttributeVariable(Unit(1), self, '_spikespace', constant=False)})
s.update({'_spikespace': ArrayVariable('_spikespace', Unit(1),
self._spikespace,
group_name=self.name)})
s.update({'_spikes': AttributeVariable(Unit(1), self,
'spikes', constant=False)})

Expand Down

0 comments on commit ed5ec94

Please sign in to comment.