I created a section in Python with 7 segments and inserted an extracellular mechanism.
Code: Select all
Soma=h.Section()
Soma.nseg=7
Soma.insert('extracellular')
Soma.xraxial[0]=100
Soma.xg[0]=1e10
Soma.xc[0]=0
Code: Select all
h.finitialize()
for seg in Soma:
print(seg.xraxial[0], seg.xraxial[1], seg.diam)
h.psection(sec=Soma)
1000000000.0 1000000000.0 500.0
1000000000.0 1000000000.0 500.0
1000000000.0 1000000000.0 500.0
100.0 1000000000.0 500.0
1000000000.0 1000000000.0 500.0
1000000000.0 1000000000.0 500.0
1000000000.0 1000000000.0 500.0
__nrnsec_0x7fbab9181800 { nseg=7 L=100 Ra=35.4
/*location 0 attached to cell 0*/
/* First segment only */
insert capacitance { cm=1}
insert morphology { diam=500}
insert extracellular { xraxial=1e+09 xg=1e+09 xc=0 e_extracellular=0}
}
Could you please help me figure out what I'm doing wrong?
Thanks!