-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_lrc.hoc
More file actions
44 lines (33 loc) · 1.14 KB
/
run_lrc.hoc
File metadata and controls
44 lines (33 loc) · 1.14 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
// Hyperparams
N_RUNS = 14
TREATMENT = 0 // either 0 for ctrl, or 1 for Li
// Load cell templates and network
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
err_ = load_file("objects/BC.hoc")
err_ = load_file("objects/MC.hoc")
err_ = load_file("objects/HIPP.hoc")
err_ = load_file("objects/PP.hoc")
// Instantiate cell objects and labels
objref hcc, hcl, lrc, lrl, nrc, nrl
strdef hcclab, hcllab, lrclab, lrllab, nrclab, nrllab
// Do N_RUNS Runs for each network setting
// TODO: look for cleaner solution for repeatedly loading DentateGyrus.hoc.
// See "iteratortest.hoc" for potential solution that needs more work...
// NOTE: below does not work either!
sprint(gcmodel, "objects/GC_%s.hoc", li_ctrl)
print gcmodel
err_ = load_file(gcmodel)
err_ = load_file("objects/DentateGyrus.hoc")
for random_state = 1, N_RUNS {
sprint(lrclab, "%s-%d", "LR_CTRL", random_state)
lrc = new DentateGyrus(lrclab, random_state, "LR_CTRL")
print "RUNNING DENTATE GYRUS ", lrclab
lrc.run()
}