From 19a20fcc77f2c681011f73133d34104cc3ea7382 Mon Sep 17 00:00:00 2001 From: Marcel Stimberg Date: Thu, 12 Sep 2024 14:16:41 +0200 Subject: [PATCH] Fix incorrect initial values for U Closes #1539 [ci skip] --- docs_sphinx/resources | 2 +- examples/frompapers/Maass_Natschlaeger_Markram_2002.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs_sphinx/resources b/docs_sphinx/resources index 32a89b4fc..8710177af 160000 --- a/docs_sphinx/resources +++ b/docs_sphinx/resources @@ -1 +1 @@ -Subproject commit 32a89b4fcf80c211352c5077bd396ec7aa11b25f +Subproject commit 8710177af5509005cbb88d12dad6d3dced14f23e diff --git a/examples/frompapers/Maass_Natschlaeger_Markram_2002.py b/examples/frompapers/Maass_Natschlaeger_Markram_2002.py index 7977b15a5..fedd51218 100755 --- a/examples/frompapers/Maass_Natschlaeger_Markram_2002.py +++ b/examples/frompapers/Maass_Natschlaeger_Markram_2002.py @@ -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