Search found 1 match

by bear
Tue Jul 17, 2012 12:47 pm
Forum: NEURON + Python
Topic: Directly accessing segment of Section() object
Replies: 1
Views: 2037

Directly accessing segment of Section() object

Hi All, I had a question regarding segment access in a Section() object in python. Considering the following (trivial) minimal example: from neuron import h # create a section sec = h.Section() # change nseg sec.nseg = 3 # iterate and run trivial operation on each segment of sec for seg in sec: prin...