Skip to content

Commit

Permalink
added surrogate compartment to LIFCell
Browse files Browse the repository at this point in the history
  • Loading branch information
ago109 committed Jul 1, 2024
1 parent 2a56225 commit 27c8a89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ngclearn/components/neurons/spiking/LIFCell.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,11 @@ def _advance_state(t, dt, tau_m, R_m, v_rest, v_reset, v_decay, refract_T,
thr, tau_theta, theta_plus, one_spike, intgFlag, d_spike_fx,
key, j, v, s, rfr, thr_theta, tols):
skey = None ## this is an empty dkey if single_spike mode turned off
if one_spike: ## old code ~> if self.one_spike is False:
if one_spike:
key, skey = random.split(key, 2)
## run one integration step for neuronal dynamics
j = j * R_m
surrogate = d_spike_fx(j)
surrogate = d_spike_fx(j, thr + thr_theta)
v, s, raw_spikes, rfr = _run_cell(dt, j, v, thr, thr_theta, rfr, skey,
tau_m, v_rest, v_reset, v_decay, refract_T,
intgFlag)
Expand Down

0 comments on commit 27c8a89

Please sign in to comment.