Using the h.parent_section() method (http://www.neuron.yale.edu/neuron/stati ... nt_section) gives me a pointer to the parent (see code example below), but I haven't been able to find in the Programmer's Reference how to point to the corresponding python object from this.
Any help would be appreciated.
Code: Select all
>>> a=h.Section()
>>> b=h.Section()
>>> c=h.Section()
>>> d=h.Section()
>>> c.connect(a)
<nrn.Section object at 0x7f88d8ecb480>
>>> b.connect(c)
<nrn.Section object at 0x7f88d8ecb3f0>
>>> d.connect(a)
<nrn.Section object at 0x7f88d8ecb450>
>>> h.topology()
|-| PySec_7f88d8ec7e10(0-1)
`| PySec_7f88d8ecb480(0-1)
`| PySec_7f88d8ecb3f0(0-1)
`| PySec_7f88d8ecb450(0-1)
1.0
>>> h.parent_section(sec=b)
22979968.0
>>>