From 73d06f93fa8f16acebaf31c811a62cf949857405 Mon Sep 17 00:00:00 2001 From: dhruv Date: Wed, 20 Sep 2023 23:57:42 +0530 Subject: [PATCH 1/2] Formula update for Izhikevich_2007 Example --- examples/frompapers/Izhikevich_2007.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/frompapers/Izhikevich_2007.py b/examples/frompapers/Izhikevich_2007.py index b4be177fb..6711a8c0c 100644 --- a/examples/frompapers/Izhikevich_2007.py +++ b/examples/frompapers/Izhikevich_2007.py @@ -52,7 +52,7 @@ 3500, 3550, 4000, 4010, 4500, 4510])*ms spike_input = SpikeGeneratorGroup(2, input_indices, input_times) -neurons = NeuronGroup(2, '''dv/dt = (ge * (Ee-vr) + El - v) / taum : volt +neurons = NeuronGroup(2, '''dv/dt = (ge * (Ee-v) + El - v) / taum : volt dge/dt = -ge / taue : 1''', threshold='v>vt', reset='v = vr', method='exact') From 814970bd404bdf2918e8a6999b114b03634e6e12 Mon Sep 17 00:00:00 2001 From: Marcel Stimberg Date: Thu, 21 Sep 2023 16:57:32 +0200 Subject: [PATCH 2/2] Change integration method for Izhikevich 2007 to Euler --- examples/frompapers/Izhikevich_2007.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/frompapers/Izhikevich_2007.py b/examples/frompapers/Izhikevich_2007.py index 6711a8c0c..3e27da5a1 100644 --- a/examples/frompapers/Izhikevich_2007.py +++ b/examples/frompapers/Izhikevich_2007.py @@ -55,7 +55,7 @@ neurons = NeuronGroup(2, '''dv/dt = (ge * (Ee-v) + El - v) / taum : volt dge/dt = -ge / taue : 1''', threshold='v>vt', reset='v = vr', - method='exact') + method='euler') neurons.v = vr neurons_monitor = SpikeMonitor(neurons)