In NEURON simulator, is there an easier way to list properties of a section other than iterating over each property individually?
Asked
Active
Viewed 266 times
2
2 Answers
1
There is the psection()
method. Once the section of interest is push()
ed. Typing psection()
or, from Python, h.psection(sec=your_section)
will produce the following example result:
>>> h.psection(sec=h.Granule[0].soma)
Granule[0].soma { nseg=1 L=8 Ra=80
/*location 0 attached to cell 5*/
/* First segment only */
insert morphology { diam=8}
insert capacitance { cm=4}
insert pas { g_pas=0 e_pas=-65}
insert kamt { gbar_kamt=0}
insert nax { sh_nax=15 gbar_nax=0}
insert na_ion { ena=60}
insert kdrmt { gbar_kdrmt=0}
insert k_ion { ek=-90}
insert Exp2Syn { tau1=5 tau2=50 e=0}
insert IClamp { del=50 dur=200 amp=0.09}
}

Justas
- 5,718
- 2
- 34
- 36
-
1Pushing a section is generally bad form because so many things can be affected by the section stack. It's better to use the sec= keyword argument which constrains the effects, e.g. h.psection(sec=h.Granule[0].soma); in NEURON 7.6+, there's also a psection method that returns a data structure that your code can analyze. – ramcdougal May 09 '19 at 16:25
-
Thx for the tip @ramcdougal – Justas May 10 '19 at 02:22
1
If you are using the NEURON gui, you could also find section properties in the NEURON's control menu:
Tools-> Model View
This's will open a ModelView window which has section and segment details such as:
- Type of cells: real cells/ artificial cells
- NetCon objects
- LinearMechanisms objects
- Density Mechanisms
- Point Processes
If you click on each property, a drop-down menu appears showing the details of the property selected
You could also view the structure of the model if you click on the cell type (real/artificial cells)

Darshan
- 38
- 5