Split a Section
Posted: Wed Aug 13, 2014 3:20 am
Hi
It seems pretty simple question but I didn't find an answer.
I have a model based on a morphology - where each branch is represented with a section.
I'm trying to split branches into 2 (or more) sections dynamically during the program. The aim is to give different rules to each of them (For example different mechanisms densities).
It's pretty simple if I have a basic morphology (axon of few sections) and I want just to add another section in the middle: by creating a new section and then disconnect the parent from the child and re connect with the new one (while changing the length of the old sections).
But how can I do it during the run (couple of times)? as every time i call create it destroys the previously declared new sections.
Thanks!
It seems pretty simple question but I didn't find an answer.
I have a model based on a morphology - where each branch is represented with a section.
I'm trying to split branches into 2 (or more) sections dynamically during the program. The aim is to give different rules to each of them (For example different mechanisms densities).
It's pretty simple if I have a basic morphology (axon of few sections) and I want just to add another section in the middle: by creating a new section and then disconnect the parent from the child and re connect with the new one (while changing the length of the old sections).
But how can I do it during the run (couple of times)? as every time i call create it destroys the previously declared new sections.
Thanks!