problem with this_node(x)/parent_node(x)
Posted: Mon Jul 18, 2005 8:37 am
Hello,
I've got a problem using commands
this_node(x)
parent_node(x)
to obtain segment number associated with a specific position x
on a section. If I execute e.g.
######################
load_file("nrngui.hoc")
create soma
access soma
soma nseg = 5
soma L = 18.8
print this_node(0)
1.3500451e+08
print this_node(1)
1.3539657e+08
#######################
using parent_node(x) I got similar results. I expected
to achieve first >1< for segment 1 and than >5< for
segment 5. Maybe someone could tell me what is
going wrong ?
peter
I've got a problem using commands
this_node(x)
parent_node(x)
to obtain segment number associated with a specific position x
on a section. If I execute e.g.
######################
load_file("nrngui.hoc")
create soma
access soma
soma nseg = 5
soma L = 18.8
print this_node(0)
1.3500451e+08
print this_node(1)
1.3539657e+08
#######################
using parent_node(x) I got similar results. I expected
to achieve first >1< for segment 1 and than >5< for
segment 5. Maybe someone could tell me what is
going wrong ?
peter