Skip to content

Commit 714a58c

Browse files
committed
tweak to adex thr arg
1 parent 77f347f commit 714a58c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ngclearn/components/neurons/spiking/adExCell.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class AdExCell(JaxComponent):
112112
113113
intrinsic_mem_thr: intrinsic membrane threshold (Default: -55 mV)
114114
115-
v_thr: voltage/membrane threshold (to obtain action potentials in terms
115+
thr: voltage/membrane threshold (to obtain action potentials in terms
116116
of binary spikes) (Default: 5 mV)
117117
118118
v_rest: membrane resting potential (Default: -72 mV)
@@ -136,7 +136,7 @@ class AdExCell(JaxComponent):
136136

137137
# Define Functions
138138
def __init__(self, name, n_units, tau_m=15., resist_m=1., tau_w=400.,
139-
v_sharpness=2., intrinsic_mem_thr=-55., v_thr=5., v_rest=-72.,
139+
v_sharpness=2., intrinsic_mem_thr=-55., thr=5., v_rest=-72.,
140140
v_reset=-75., a=0.1, b=0.75, v0=-70., w0=0.,
141141
integration_type="euler", batch_size=1, **kwargs):
142142
super().__init__(name, **kwargs)
@@ -158,7 +158,7 @@ def __init__(self, name, n_units, tau_m=15., resist_m=1., tau_w=400.,
158158

159159
self.v0 = v0 ## initial membrane potential/voltage condition
160160
self.w0 = w0 ## initial w-parameter condition
161-
self.v_thr = v_thr
161+
self.thr = thr
162162

163163
## Layer Size Setup
164164
self.batch_size = batch_size
@@ -174,9 +174,9 @@ def __init__(self, name, n_units, tau_m=15., resist_m=1., tau_w=400.,
174174
units="ms") ## time-of-last-spike
175175

176176
@staticmethod
177-
def _advance_state(t, dt, tau_m, R_m, tau_w, v_thr, a, b, sharpV, vT,
177+
def _advance_state(t, dt, tau_m, R_m, tau_w, thr, a, b, sharpV, vT,
178178
v_rest, v_reset, intgFlag, j, v, w, tols):
179-
v, w, s = _run_cell(dt, j, v, w, v_thr, tau_m, tau_w, a, b, sharpV, vT,
179+
v, w, s = _run_cell(dt, j, v, w, thr, tau_m, tau_w, a, b, sharpV, vT,
180180
v_rest, v_reset, R_m, intgFlag)
181181
tols = _update_times(t, s, tols)
182182
return j, v, w, s, tols
@@ -230,7 +230,7 @@ def help(cls): ## component help function
230230
"tau_m": "Cell membrane time constant",
231231
"resist_m": "Membrane resistance value",
232232
"tau_w": "Recovery variable time constant",
233-
"v_thr": "Base voltage threshold value",
233+
"thr": "Base voltage threshold value",
234234
"v_rest": "Resting membrane potential value",
235235
"v_reset": "Reset membrane potential value",
236236
"v_sharpness": "Slope factor/voltage sharpness constant",

0 commit comments

Comments
 (0)