difficulty transporting some code from hoc to python
Posted: Mon Dec 06, 2010 11:44 am
Hi,
I've been trying to solve this problem for a while now, I should point out that I don't have very much experience with hoc.
I've found some hoc code that contains the statement:
to me this seems to suggest that myelin and node are created as global arrays with two elements and then when the procedure create_axon is called the globals are changed or destroyed, however I can't seem to get the behaviour I'd expect from these conditions (e.g if I delete the myelin[2] statement it causes an error in the create_axon procedure) and I've not been able to find any hoc literature to help with this, can anyone explain why this makes sense so I can continue to transport this code to Python?
I've been trying to solve this problem for a while now, I should point out that I don't have very much experience with hoc.
I've found some hoc code that contains the statement:
Code: Select all
n_axon_seg = 5
create soma,iseg,hill,myelin[2],node[2]
proc create_axon() {
create iseg,hill,myelin[n_axon_seg],node[n_axon_seg]
etc...