Skip to content

Commit

Permalink
Merge pull request #1560 from brian-team/fix_Maass_Natschlaeger_Markr…
Browse files Browse the repository at this point in the history
…am_2002

Fix incorrect initial values for U
  • Loading branch information
mstimberg authored Sep 12, 2024
2 parents 77ed84f + 19a20fc commit d529569
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs_sphinx/resources
2 changes: 1 addition & 1 deletion examples/frompapers/Maass_Natschlaeger_Markram_2002.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def get_synapses(name, source, target, C, l, tau_I, A, U, D, F, delay):

synapses.A[:] = np.sign(A / nA) * np.random.gamma(1, abs(A / nA), size=N_syn) * nA

synapses.U[:] = np.random.normal(U, 0.5, size=N_syn)
synapses.U[:] = np.random.normal(U, 0.5 * U, size=N_syn)
# paper samples from uniform, we take the mean
synapses.U[:][synapses.U < 0] = U

Expand Down

0 comments on commit d529569

Please sign in to comment.