From db41c5d549017dc019a273896558f64e3e2bf262 Mon Sep 17 00:00:00 2001 From: "C.A.P. Linssen" Date: Mon, 9 Dec 2024 11:26:55 +0100 Subject: [PATCH] fix spike rate physical units from Hz to spks/s --- pynest/examples/brunel_delta_nest.py | 2 +- pynest/examples/sudoku/sudoku_net.py | 2 +- testsuite/pytests/test_poisson_generator_campbell_alpha.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pynest/examples/brunel_delta_nest.py b/pynest/examples/brunel_delta_nest.py index a572aa1486..863a15f79a 100755 --- a/pynest/examples/brunel_delta_nest.py +++ b/pynest/examples/brunel_delta_nest.py @@ -106,7 +106,7 @@ # Definition of threshold rate, which is the external rate needed to fix the # membrane potential around its threshold, the external firing rate and the # rate of the poisson generator which is multiplied by the in-degree CE and -# converted to Hz by multiplication by 1000. +# converted to spks/s by multiplication by 1000. nu_th = theta / (J * CE * tauMem) nu_ex = eta * nu_th diff --git a/pynest/examples/sudoku/sudoku_net.py b/pynest/examples/sudoku/sudoku_net.py index b709010fae..06bb28f05e 100644 --- a/pynest/examples/sudoku/sudoku_net.py +++ b/pynest/examples/sudoku/sudoku_net.py @@ -232,6 +232,6 @@ def set_noise_rate(self, rate): Parameters ---------- rate : float - average spike frequency in Hz + average spike rate in spks/s """ self.noise.rate = rate diff --git a/testsuite/pytests/test_poisson_generator_campbell_alpha.py b/testsuite/pytests/test_poisson_generator_campbell_alpha.py index 1c3e427b09..12aca85afa 100644 --- a/testsuite/pytests/test_poisson_generator_campbell_alpha.py +++ b/testsuite/pytests/test_poisson_generator_campbell_alpha.py @@ -46,7 +46,7 @@ def test_poisson_generator_alpha(): tolerance = 0.05 V_m_target = 20.0 J = 0.01 - # solve for rate, convert to Hz, drop C_m as it is 1. + # solve for rate, convert to spks/s, drop C_m as it is 1. rate = 1000.0 * V_m_target / (J * neuron_params["tau_m"] * np.exp(1) * neuron_params["tau_syn_ex"]) poisson = nest.Create("poisson_generator")