Skip to content

Commit

Permalink
Change equations slighly to make them work for the less powerful "exa…
Browse files Browse the repository at this point in the history
…ct" state updater

After merging #1327, this shouldn't be necessary anymore.
  • Loading branch information
mstimberg committed Jul 13, 2021
1 parent a31bf40 commit ab9ba35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brian2/tests/test_synapses.py
Original file line number Diff line number Diff line change
Expand Up @@ -1574,14 +1574,14 @@ def test_event_driven_dependency_checks():

# Dependency on parameter
syn = Synapses(dummy, dummy, '''
da/dt = -b / (5*ms) : 1 (event-driven)
da/dt = (a-b) / (5*ms): 1 (event-driven)
b : 1''',
on_pre='b+=1')
syn.connect()

# Dependency on parameter via subexpression
syn2 = Synapses(dummy, dummy, '''
da/dt = -b / (5*ms) : 1 (event-driven)
da/dt = (a-b) / (5*ms): 1 (event-driven)
b = c : 1
c : 1''',
on_pre='c+=1')
Expand Down

0 comments on commit ab9ba35

Please sign in to comment.