Page 1 of 1

Different v_init for different neurons in a network

Posted: Wed Oct 09, 2019 11:30 am
by Johannes
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

Re: Different v_init for different neurons in a network

Posted: Thu Oct 10, 2019 11:14 am
by ted
No Python- or hoc-specific magic is involved. In pseudocode

Code: Select all

for each section {
  for each segment {
    set v to whatever initial value you want
  }
}
call finitialize() with no argument
Add whatever elaborations or refinements you like to do this on a cell-specific basis.