Page 1 of 1

psection and segments

Posted: Mon Jun 11, 2012 3:29 am
by cwei_h
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,

Re: psection and segments

Posted: Mon Jun 11, 2012 11:40 am
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.