Code: Select all
insert extracellular xraxial=Rpn0
Thanks,
Gordon
Moderator: hines
Code: Select all
insert extracellular xraxial=Rpn0
Code: Select all
insert extracellular xraxial=Rpn0
I don't think that Python tolerates placing more than one statement in a single line.Is there a equivalent syntax in Python?
Code: Select all
for i=0, paranodes1-1 {
MYSA[i]{
nseg=1
diam=fiberD
L=paralength1
Ra=rhoa*(1/(paraD1/fiberD)^2)/10000
cm=2*paraD1/fiberD
insert pas
g_pas=0.001*paraD1/fiberD
e_pas=-80
insert extracellular xraxial=Rpn1 xg=mygm/(nl*2) xc=mycm/(nl*2)
}
Code: Select all
cur_node.insert("extracellular")
cur_node.xraxial = x
Code: Select all
IndexError: missing index
Code: Select all
cur_node.insert("extracellular")
cur_node.xraxial[0] = 5
cur_node.xraxial[1] = 5
Actually that's an inference or hypothesis, which is yet to be verified. You have yet to carry out the "critical experiment" (test that can disprove the hypothesis), which is easily done done by taking advantage of the interpreter's "immediate execution" feature.gduffley wrote:I tried to edit the variables of my section by doing:First let me point out that, after a mechanism has been inserted into a section, it is no longer necessary to insert that mechanism again.Code: Select all
cur_node.insert("extracellular") cur_node.xraxial = x
My conclusion from all of this is the Hoc syntax actually changed the value of both variables