I'm trying to solve a problem with the synapses creation in a MULTISPLIT simulation.
My problem is the following:
I have 2 procedures for synapses creation, which are:
Code: Select all
proc create_syn_NMDA() { local i localobj tobj
for i = 0, $1-1 {
tobj = new Exp2Syn(0.5)
tobj.tau1=1
tobj.tau2=10
tobj.e=0
syn1list.append(tobj)
}
}
proc create_syn_GLU() { local i localobj tobj
for i = 0, $1-1 {
tobj = new Exp2Syn(0.5)
tobj.tau1=0.5
tobj.tau2=3
tobj.e=0
syn3list.append(tobj)
}
}
Code: Select all
create_syn_NMDA(n_NMDA_tot)
create_syn_GLU(n_GLU_tot)
Code: Select all
{pc.multisplit()}
{pc.set_maxstep(100)}
But if I comment the following instructions
Code: Select all
proc create_syn_NMDA() { local i localobj tobj
for i = 0, $1-1 {
tobj = new Exp2Syn(0.5)
/*tobj.tau1=1
tobj.tau2=10
tobj.e=0*/
syn1list.append(tobj)
}
}
proc create_syn_GLU() { local i localobj tobj
for i = 0, $1-1 {
tobj = new Exp2Syn(0.5)
/*tobj.tau1=0.5
tobj.tau2=3
tobj.e=0*/
syn3list.append(tobj)
}
}
So, I thought to move the calling of
Code: Select all
create_syn_NMDA(n_NMDA_tot)
create_syn_GLU(n_GLU_tot)
Code: Select all
{pc.multisplit()}
{pc.set_maxstep(100)}
Code: Select all
for i=0, $3-1 {
dbl_precision(32)
{pc.multisplit()}
{pc.set_maxstep(100)}
/////place synapses///////
rs1.r.discunif(0, ndend-1)
rs2.r.uniform(0.7,1)
rs3.r.discunif(0, napical_dend-1)
rs4.r.uniform(0.7,1)
rsstim.r.uniform(0, 10)
create_syn_NMDA(n_NMDA_tot)
create_syn_GLU(n_GLU_tot)
place_syn_GLU_NMDA(nsyn)
place_syn_NMDA(n_NMDA,nsyn)
stimul_syn(n_NMDA,nsyn,$1)
...
I know that in this way it is very difficult to understand the problem in detail, so, if someone is interested to help me, I can send an email with the program source code (with the relative instructions to run the program).
Thanks.