Skip to content

Commit dd49e5f

Browse files
committed
mod to raf-cell
1 parent fb8524a commit dd49e5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ngclearn/components/neurons/spiking/RAFCell.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def __init__(self, name, n_units, tau_m=15., resist_m=1., tau_w=400.,
123123

124124
## Cell properties
125125
self.tau_m = tau_m
126-
self.R_m = resist_m
126+
self.resist_m = resist_m
127127
self.tau_w = tau_w
128128
self.omega = omega ## angular frequency
129129
self.b = b ## dampening factor
@@ -150,9 +150,9 @@ def __init__(self, name, n_units, tau_m=15., resist_m=1., tau_w=400.,
150150
units="ms") ## time-of-last-spike
151151

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

0 commit comments

Comments
 (0)