Accessing segment area
Posted: Tue May 13, 2014 6:53 pm
How can I access the segment area form Python?
For example, I have a hoc objet L2_PC[0] and the the following does not work
I thought this is how the range variable should be accessed in Python
What do I do wrong here?
Thanks
For example, I have a hoc objet L2_PC[0] and the the following does not work
Code: Select all
>>> h.L2_PC[0].dend[14](0.1).area
Traceback (most recent call last):
File "stdin", line 1, in <module>
AttributeError: 'nrn.Segment' object has no attribute 'area'
Code: Select all
sec(x).rangevar
What do I do wrong here?
Thanks