Code: Select all
for i=0, num_run - 1 {
xopen("SIE_fig2_10.hoc")
strobj.right(wfilename, 1)
print i*100000
}
Code: Select all
for i=0, num_run - 1 {
xopen("SIE_fig2_10.hoc")
strobj.right(wfilename, 1)
print i*100000
}
Code: Select all
/*
usage:
batchrun(5, 50)
executes 5 simulations, each lasting 50 ms,
with soma.gnabar_hh(0.5) stepping from 0 to 0.4*default gnabar_hh
*/
proc batchrun() { local i, tmp
t_stop = $2
tmp = soma.gnabar_hh(0.5)
for i=0,$1-1 {
soma.gnabar_hh(0.5) = tmp*i/10
run()
}
}
Code: Select all
// 29 June 2011 Saver
/*****************************WRITING************************/
proc save() {
//RECORD STIM AND SPIKES
wfilename = $1
objref dataf, fullVec
dataf = new File()
fullVec = new Vector()
fullVec.insrt(0, stimVec.size()/(tstop-2*buffer), rNCVec.size()/(tstop-2*buffer), IrVec.max(), tstop, stimVec, -1e99, rNCVec)
fullVec.printf()
dataf.wopen(wfilename)
fullVec.vwrite(dataf)
dataf.close()
printf("saved in %s", wfilename)
}
Code: Select all
/Applications/NEURON-7.2/nrn/i386/bin/nrniv.app/Contents/MacOS/nrniv: syntax error
in saver.hoc near line 12
dataf = new File()
^
xopen("saver.hoc")
execute1("{xopen("saver.hoc")}")
load_file("saver.hoc")
0
/Applications/NEURON-7.2/nrn/i386/bin/nrniv.app/Contents/MacOS/nrniv: syntax error
in saver.hoc near line 13
fullVec = new Vector()
^