Membrane currents
Posted: Wed Sep 30, 2009 10:43 pm
I want to write a function in my python code, that automatically writes every time step all the membrane currents in a segment to a file.
I have all the code for this, the only piece I'm missing is a way to automatically find out all the fields that are available in a segment (the _ref_ attributes), is there a solution for this ? (Is there actually a function in hoc for this, I couldn't find any ? Because then I could also send the names from hoc to python)
And a slightly related question. At the moment I'm using variable time step, but I need output files in fixed time step. Is there a way, using functions from neuron, to get an interpolated output vector using the fixed time step ?
I know that it's possible with the tvec to force neuron to write to a vector at fixed time steps, but this slows down the simulation, so I would prefer in an interpolation method.
Thx,
Werner Van Geit
I have all the code for this, the only piece I'm missing is a way to automatically find out all the fields that are available in a segment (the _ref_ attributes), is there a solution for this ? (Is there actually a function in hoc for this, I couldn't find any ? Because then I could also send the names from hoc to python)
And a slightly related question. At the moment I'm using variable time step, but I need output files in fixed time step. Is there a way, using functions from neuron, to get an interpolated output vector using the fixed time step ?
I know that it's possible with the tvec to force neuron to write to a vector at fixed time steps, but this slows down the simulation, so I would prefer in an interpolation method.
Thx,
Werner Van Geit