psection and segments

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

Moderator: hines

Post Reply
cwei_h

psection and segments

Post by cwei_h » Mon Jun 11, 2012 3:29 am

Hello,
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.
Best,

ted
Site Admin
Posts: 5566
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: psection and segments

Post by ted » Mon Jun 11, 2012 11:40 am

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