Different v_init for different neurons in a network

When Python is the interpreter, what is a good
design for the interface to the basic NEURON
concepts.

Moderator: hines

Post Reply
Johannes
Posts: 3
Joined: Fri Jun 02, 2017 10:45 am

Different v_init for different neurons in a network

Post 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
ted
Site Admin
Posts: 6289
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

Post 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.
Post Reply