I was given a model cell that has synapses (Exp2Syn type) and I want to calculate the synaptic conductance over that model cell. To do that, my strategy was the following:
1- for each section in the cell, find the pointprocesses of the Exp2Syn type
2- iterate over these PPs to:
2-1- find the netcon object that connects to this PP
2-2- read the synaptic weight of that individual Exp2Syn
The following code, which I got from Neuron documentation, allowed me to do steps 1 and 2; however, I couldn't find a way to do steps 2-1 and 2-2. I would appreciate your help in finding a way to get the netcon object that connects to a known pointprocess and read its weight
Here is the code:
Code: Select all
objref mt, pp
mt = new MechanismType(1)
mt.select("Exp2Syn")
forall {
for (pp = mt.pp_begin(); object_id(pp) != 0; pp = mt.pp_next()) {
x = pp.get_loc()
printf("%s located at %s(%g)\n", pp, secname(), x)
// Here, I need to access the netcon object connected to this PP to read its weight
pop_section()
}
}