Skip to content

Commit

Permalink
mod to raf-cell
Browse files Browse the repository at this point in the history
  • Loading branch information
ago109 committed Aug 8, 2024
1 parent fb8524a commit dd49e5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ngclearn/components/neurons/spiking/RAFCell.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def __init__(self, name, n_units, tau_m=15., resist_m=1., tau_w=400.,

## Cell properties
self.tau_m = tau_m
self.R_m = resist_m
self.resist_m = resist_m
self.tau_w = tau_w
self.omega = omega ## angular frequency
self.b = b ## dampening factor
Expand All @@ -150,9 +150,9 @@ def __init__(self, name, n_units, tau_m=15., resist_m=1., tau_w=400.,
units="ms") ## time-of-last-spike

@staticmethod
def _advance_state(t, dt, tau_m, R_m, tau_w, thr, omega, b, v_rest,
def _advance_state(t, dt, tau_m, resist_m, tau_w, thr, omega, b, v_rest,
v_reset, w_reset, intgFlag, j, v, w, tols):
j_ = j * R_m
j_ = j * resist_m
if intgFlag == 1: ## RK-2/midpoint
w_params = (j_, v, tau_w, omega, b)
_, _w = step_rk2(0., w, _dfw, dt, w_params)
Expand Down

0 comments on commit dd49e5f

Please sign in to comment.