How to identify the locations of point processes using hoc

Anything that doesn't fit elsewhere.
Post Reply
Ku, B.-W.
Posts: 2
Joined: Tue May 29, 2007 9:11 am
Location: Seoul, Korea

How to identify the locations of point processes using hoc

Post 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.
ted
Site Admin
Posts: 6384
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Post 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))
Ku, B.-W.
Posts: 2
Joined: Tue May 29, 2007 9:11 am
Location: Seoul, Korea

Post by Ku, B.-W. »

It works !
Thank you Mr. Carnevale. (-:
ted
Site Admin
Posts: 6384
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Post by ted »

You are quite welcome.
Post Reply