Search found 17 matches

by rlindroos
Tue Jan 07, 2014 10:57 am
Forum: Getting started
Topic: copy and use object reference (SectionRef) in function
Replies: 3
Views: 3552

copy and use object reference (SectionRef) in function

Hi all, I want to make a function that calculates the somatic distance of a section similar to this thread: http://www.neuron.yale.edu/phpbb/viewtopic.php?f=15&t=2892 something like: func cableDist() {local dist $o1.sec print secname() // checking imported section $o1.parent print secname() // c...
by rlindroos
Tue Jan 07, 2014 10:14 am
Forum: Getting started
Topic: the distance() function
Replies: 18
Views: 19593

the distance() function

Hi, I want to create a function for setting channel densities etc based on somatic cable/path distance for an anatomically detailed model (the morphology is imported from a .swc file). I first tried this function: proc alldist() { soma distance() // make soma(0) be the reference point for distance m...