Search found 1 match
Search found 1 match • Page 1 of 1
- Tue Jul 17, 2012 12:47 pm
- Forum: NEURON + Python
- Topic: Directly accessing segment of Section() object
- Replies: 1
- Views: 2037
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...