From f82b13bf9af742300944bb6481a9073dbeaee5bf Mon Sep 17 00:00:00 2001 From: jarsi <jari.pronold@gmail.com> Date: Wed, 25 Mar 2020 13:07:49 +0100 Subject: [PATCH] Simplify comparison --- multiarea_model/theory_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multiarea_model/theory_helpers.py b/multiarea_model/theory_helpers.py index ac3832f..d9fe257 100644 --- a/multiarea_model/theory_helpers.py +++ b/multiarea_model/theory_helpers.py @@ -85,7 +85,7 @@ def nu_0(tau_m, tau_r, V_th, V_r, mu, sigma): sigma : float Variance of the input current to the neurons in mV """ - if mu <= V_th + (0.95 * abs(V_th) - abs(V_th)): + if mu <= V_th - 0.05 * abs(V_th): return siegert1(tau_m, tau_r, V_th, V_r, mu, sigma) else: return siegert2(tau_m, tau_r, V_th, V_r, mu, sigma) -- GitLab