Hello,
I'm willing to add 3d points to define sections. I'm working under python 2.5 (with neuron as a module), and I tried the following: my_section = h.pt3dadd(x,y,z,d), but it didn't seem to work. (couldn't get any shape plot after that: "No accessed section...")
All other syntaxes I tried out led to an error message during execution... Unfortunately, this is a problem I cannot circumvent...
Could someone please help me with the syntax?
Thanks a lot!
pt3dadd in python
Moderator: hines
Re: pt3dadd in python
try
h.pt3dadd(x,y,z,d, sec=my_section)
or if you are doing many points at once, you could factor out the section push/pop with
my_section.push()
#loop over points to be in the section with h.pt3dadd(x,y,z,d)
h.pop_section()
h.pt3dadd(x,y,z,d, sec=my_section)
or if you are doing many points at once, you could factor out the section push/pop with
my_section.push()
#loop over points to be in the section with h.pt3dadd(x,y,z,d)
h.pop_section()