psection and segments

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

Moderator: hines

Post Reply

psection and segments

Post by cwei_h »

h.psection(sec=Section) seems to only give you info on the first segment only. How can i see the other segments assuming nseg >1.
Site Admin
Posts: 5810
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine

Re: psection and segments

Post by ted »

Suppose soma contains a density mechanism with SUFFIX na whose density is specified by the RANGE variable gbar. Then

Code: Select all

for seg in soma:
  print seg.x, seg.gbar_na
should tell you how gbar_na varies along the length of soma.
Post Reply