Question about HOC syntax and section connection
Posted: Thu Dec 05, 2024 5:26 am
Hello,
I have some questions regarding HOC syntax.
I am working on a processor to simplify a cell's morphology.
The cell is instantiated from a template. In the processor, I delete all sections except for the soma and then create a new axon.
I tried to connect the axon to the soma using the following command:
hoc
oc> connect axon[0](0), cell.soma(1)
However, I encountered an error:
nrniv.exe: stack underflow
It seems this method does not work.
Then, I tried the following instead:
hoc
cell.soma {connect axon[0](0) , 1}
This approach worked.
Could you explain why the first method is not possible, while the second one works?
Thank you!
I have some questions regarding HOC syntax.
I am working on a processor to simplify a cell's morphology.
The cell is instantiated from a template. In the processor, I delete all sections except for the soma and then create a new axon.
I tried to connect the axon to the soma using the following command:
hoc
oc> connect axon[0](0), cell.soma(1)
However, I encountered an error:
nrniv.exe: stack underflow
It seems this method does not work.
Then, I tried the following instead:
hoc
cell.soma {connect axon[0](0) , 1}
This approach worked.
Could you explain why the first method is not possible, while the second one works?
Thank you!