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!
Question about HOC syntax and section connection
Re: Question about HOC syntax and section connection
nrniv.exe: stack underflow
Thesyntax is unfortunately limited in that the parent cannot be of the formCode: Select all
connect child, parent
as the sequence of tokens syntactically conflicts with other syntax in the HOC language. That is, with that form of the connect statement, the parent must be a literal section name. If the parent involves object syntax then you must use the generic formCode: Select all
obj.sec
Code: Select all
parent connect child
Re: Question about HOC syntax and section connection
Dear hines,
Thank you for the clear and easy-to-understand explanation.
Best, jeongju.
Thank you for the clear and easy-to-understand explanation.
Best, jeongju.