When Python is the interpreter, what is a good
design for the interface to the basic NEURON
- Posts: 41
- Joined: Thu May 03, 2007 4:04 pm
- Location: Institute of Science and Technology (IST Austria)
I'm trying to get a list of nrn.Section objects that contains all the parents until the soma
from a given section (it could be the currently accessed section). I tried several methods of SectionList, but couldn't find anything appropriate. For example, in the following example where the soma is connected to dend,and this section to dend ... until dend, I could easily get the children, but not the parents as follows:
Code: Select all
>> myseclist = h.SectionList()
>> myseclist.children( sec = mycell.dend ) # mycell is a custom cell type
Is there anything like parent()?
Thanks in advance.