@@ -57,7 +57,7 @@ def __init__(
5757 do_set_nseg = True ,
5858 comment = '' ,
5959 replace_axon_hoc = None ,
60- axon_stump_length = 60 ,
60+ axon_stub_length = 60 ,
6161 axon_nseg_frequency = 40 ,
6262 nseg_frequency = 40 ,
6363 morph_modifiers = None ,
@@ -76,7 +76,7 @@ def __init__(
7676 python, replace_axon is used instead. Must include
7777 'proc replace_axon(){ ... }
7878 If None,the default replace_axon is used
79- axon_stump_length (float): Length of replacement axon
79+ axon_stub_length (float): Length of replacement axon
8080 axon_nseg_frequency (int): frequency of nseg, for axon
8181 nseg_frequency (float): frequency of nseg
8282 do_set_nseg (bool): if True, it will use nseg_frequency
@@ -94,7 +94,7 @@ def __init__(
9494 morphology_path = str (morphology_path )
9595 self .morphology_path = morphology_path
9696 self .do_replace_axon = do_replace_axon
97- self .axon_stump_length = axon_stump_length
97+ self .axon_stub_length = axon_stub_length
9898 self .axon_nseg_frequency = axon_nseg_frequency
9999 self .do_set_nseg = do_set_nseg
100100 self .nseg_frequency = nseg_frequency
@@ -162,7 +162,7 @@ def instantiate(self, sim=None, icell=None):
162162
163163 if self .do_replace_axon :
164164 self .replace_axon (sim = sim , icell = icell ,
165- axon_stump_length = self .axon_stump_length ,
165+ axon_stub_length = self .axon_stub_length ,
166166 axon_nseg_frequency = self .axon_nseg_frequency )
167167
168168 if self .morph_modifiers is not None :
@@ -181,7 +181,7 @@ def set_nseg(self, icell):
181181
182182 @staticmethod
183183 def replace_axon (sim = None , icell = None ,
184- axon_stump_length = 60 , axon_nseg_frequency = 40 ):
184+ axon_stub_length = 60 , axon_nseg_frequency = 40 ):
185185 """Replace axon"""
186186
187187 nsec = len ([sec for sec in icell .axonal ])
@@ -197,9 +197,9 @@ def replace_axon(sim=None, icell=None,
197197
198198 for section in icell .axonal :
199199 # If distance to soma is larger than
200- # axon_stump_length , store diameter
200+ # axon_stub_length , store diameter
201201 if sim .neuron .h .distance (1 , 0.5 , sec = section ) \
202- > axon_stump_length :
202+ > axon_stub_length :
203203 ais_diams [1 ] = section .diam
204204 break
205205
@@ -210,7 +210,7 @@ def replace_axon(sim=None, icell=None,
210210 sim .neuron .h .execute ('create axon[2]' , icell )
211211
212212 for index , section in enumerate (icell .axon ):
213- section .L = axon_stump_length / 2
213+ section .L = axon_stub_length / 2
214214 section .nseg = 1 + 2 * int (section .L / axon_nseg_frequency )
215215 section .diam = ais_diams [index ]
216216 icell .axonal .append (sec = section )
@@ -219,7 +219,7 @@ def replace_axon(sim=None, icell=None,
219219 icell .axon [0 ].connect (icell .soma [0 ], 1.0 , 0.0 )
220220 icell .axon [1 ].connect (icell .axon [0 ], 1.0 , 0.0 )
221221
222- logger .debug (f"Replace axon with AIS, { axon_stump_length = } " )
222+ logger .debug (f"Replace axon with AIS, { axon_stub_length = } " )
223223
224224 default_replace_axon_hoc = \
225225 '''
0 commit comments