Skip to content

Commit

Permalink
Do not resize scalar delays when adding synapses
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Stimberg committed Oct 8, 2013
1 parent fd35924 commit ddff8e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions brian2/synapses/synapses.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,8 @@ def __init__(self, source, target=None, model=None, pre=None, post=None,
updater._delays.resize(1)
updater._delays[0] = float(pathway_delay)
updater._delays.scalar = True
# Do not resize the scalar delay variable when adding synapses
self.unregister_variable(updater._delays)

#: Performs numerical integration step
self.state_updater = StateUpdater(self, method)
Expand Down

0 comments on commit ddff8e6

Please sign in to comment.