From dd49e5fe81abaf86460a2ee80b1c3d2a78040d7f Mon Sep 17 00:00:00 2001 From: ago109 Date: Wed, 7 Aug 2024 22:58:11 -0400 Subject: [PATCH] mod to raf-cell --- ngclearn/components/neurons/spiking/RAFCell.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ngclearn/components/neurons/spiking/RAFCell.py b/ngclearn/components/neurons/spiking/RAFCell.py index 6758daf57..a1a03cd8a 100755 --- a/ngclearn/components/neurons/spiking/RAFCell.py +++ b/ngclearn/components/neurons/spiking/RAFCell.py @@ -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 @@ -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)