-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathiteratortest.hoc
More file actions
48 lines (35 loc) · 1.11 KB
/
iteratortest.hoc
File metadata and controls
48 lines (35 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// IDEAL SOLUTION FOR RUNNING MAIN EXPERIMENTS. DOES NOT WORK THOUGH.
N_RUNS = 3
strdef hc_ctrl, hc_litm, li_ctrl, li_litm, nr_ctrl, nr_litm
hc_ctrl = "HC_CTRL"
hc_litm = "HC_LITM"
li_ctrl = "LR_CTRL"
li_litm = "LR_LITM"
nr_ctrl = "NR_CTRL"
nr_litm = "NR_LITM"
strdef gcmodel
strdef groupcon, hcclab
objref hcc
load_file("objects/BC.hoc")
load_file("objects/MC.hoc")
load_file("objects/HIPP.hoc")
load_file("objects/PP.hoc")
proc runexperiments() { local i
for i = 1, numarg() {
groupcon = $si
print groupcon
//groupcon = hc_ctrl
sprint(gcmodel, "objects/GC_%s.hoc", groupcon)
load_file(gcmodel)
load_file("objects/DentateGyrus.hoc")
for random_state = 1, N_RUNS {
random_state = 1
sprint(hcclab, "%s-%d", groupcon, random_state)
// TODO: understand why you cannot instantiate template within proc...
hcc = new DentateGyrus(hcclab, random_state, groupcon)
print "RUNNING DENTATE GYRUS ", hcclab
hcc.run()
}
}
}
runexperiments(hc_ctrl)