Page 1 of 1
How to identify the locations of point processes using hoc
Posted: Fri Jun 29, 2007 9:11 am
by Ku, B.-W.
Hello,
How can I write a hoc program
to identify the locations of point processes (e.g. synapses)
attached to the sections of a neuron model?
Thanks.
Posted: Fri Jun 29, 2007 1:31 pm
by ted
This procedure expects a point process as its argument, and reports the
location of that point process.
Code: Select all
proc reportloc() { local range
range = $o1.get_loc()
print "point process ", $o1, " is attached to ", secname(), " at ", range
pop_section()
}
If you have a List that contains a bunch of point processes, just iterate over
the list
Code: Select all
for i=0,pplist.count()-1 reportloc(pplist.o(i))
Posted: Sat Jun 30, 2007 8:33 am
by Ku, B.-W.
It works !
Thank you Mr. Carnevale. (-:
Posted: Sat Jun 30, 2007 9:43 pm
by ted
You are quite welcome.