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.
How to identify the locations of point processes using hoc
-
- Site Admin
- Posts: 6384
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
This procedure expects a point process as its argument, and reports the
location of that point process.
If you have a List that contains a bunch of point processes, just iterate over
the list
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()
}
the list
Code: Select all
for i=0,pplist.count()-1 reportloc(pplist.o(i))