Code: Select all
nrnversion()
NEURON -- VERSION 7.6.1 master (a558837) 2018-08-01
create soma
create dend[5]
soma connect dend[0](0),1
dend[0] connect dend[1](0),1
dend[1] connect dend[2](0),1
dend[2] connect dend[3](0),1
dend[3] connect dend[4](0),1
forall {
diam=10
Ra=200
insert pas
g_pas=2e-4
nseg=5
}
access soma
objref Z
Z = new Impedance()
Z.loc(0.5)
0
Z.compute(20,1)
0
dend[4] { print Z.transfer(0.5) }
20.508135
dend[4] { print Z.input(0.5) }
25.761481
dend[4] { print Z.transfer(0.5) }
25.761481
I can't find why this happens, so any help on fixing it would be appreciated.
P.S. This only happens with the extended calculation using dv/dt state. If the line "Z.compute(20,1)" is changed to "Z.compute(20,0)", then the transfer impedance is calculated correctly both times.