Hej!
We use neuron + python to simulate a network and would like to set different v_init for different neurons.
We use this approach to set the v_init, but it is global, so affect all neurons:
self.sim.neuron.h.v_init = -80
Is there some good way to do it using the python interface?
Cheers,
Johannes
Different v_init for different neurons in a network
Moderator: hines
-
- Site Admin
- Posts: 6299
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Different v_init for different neurons in a network
No Python- or hoc-specific magic is involved. In pseudocodeAdd whatever elaborations or refinements you like to do this on a cell-specific basis.
Code: Select all
for each section {
for each segment {
set v to whatever initial value you want
}
}
call finitialize() with no argument