Skip to content

Commit

Permalink
fix spike rate physical units from Hz to spks/s
Browse files Browse the repository at this point in the history
  • Loading branch information
C.A.P. Linssen committed Dec 9, 2024
1 parent 55abd1d commit db41c5d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pynest/examples/brunel_delta_nest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pynest/examples/sudoku/sudoku_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion testsuite/pytests/test_poisson_generator_campbell_alpha.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit db41c5d

Please sign in to comment.