@@ -112,7 +112,7 @@ class AdExCell(JaxComponent):
112
112
113
113
intrinsic_mem_thr: intrinsic membrane threshold (Default: -55 mV)
114
114
115
- v_thr : voltage/membrane threshold (to obtain action potentials in terms
115
+ thr : voltage/membrane threshold (to obtain action potentials in terms
116
116
of binary spikes) (Default: 5 mV)
117
117
118
118
v_rest: membrane resting potential (Default: -72 mV)
@@ -136,7 +136,7 @@ class AdExCell(JaxComponent):
136
136
137
137
# Define Functions
138
138
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. ,
140
140
v_reset = - 75. , a = 0.1 , b = 0.75 , v0 = - 70. , w0 = 0. ,
141
141
integration_type = "euler" , batch_size = 1 , ** kwargs ):
142
142
super ().__init__ (name , ** kwargs )
@@ -158,7 +158,7 @@ def __init__(self, name, n_units, tau_m=15., resist_m=1., tau_w=400.,
158
158
159
159
self .v0 = v0 ## initial membrane potential/voltage condition
160
160
self .w0 = w0 ## initial w-parameter condition
161
- self .v_thr = v_thr
161
+ self .thr = thr
162
162
163
163
## Layer Size Setup
164
164
self .batch_size = batch_size
@@ -174,9 +174,9 @@ def __init__(self, name, n_units, tau_m=15., resist_m=1., tau_w=400.,
174
174
units = "ms" ) ## time-of-last-spike
175
175
176
176
@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 ,
178
178
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 ,
180
180
v_rest , v_reset , R_m , intgFlag )
181
181
tols = _update_times (t , s , tols )
182
182
return j , v , w , s , tols
@@ -230,7 +230,7 @@ def help(cls): ## component help function
230
230
"tau_m" : "Cell membrane time constant" ,
231
231
"resist_m" : "Membrane resistance value" ,
232
232
"tau_w" : "Recovery variable time constant" ,
233
- "v_thr " : "Base voltage threshold value" ,
233
+ "thr " : "Base voltage threshold value" ,
234
234
"v_rest" : "Resting membrane potential value" ,
235
235
"v_reset" : "Reset membrane potential value" ,
236
236
"v_sharpness" : "Slope factor/voltage sharpness constant" ,
0 commit comments