-
Notifications
You must be signed in to change notification settings - Fork 6
/
args.py
109 lines (87 loc) · 3.65 KB
/
args.py
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import argparse
parser = argparse.ArgumentParser()
# command line arguments
parser.add_argument("-nring",
metavar='N',
help="number of rings (default 16)",
type=int,
default=16)
parser.add_argument("-ncell",
metavar='N',
help="number of cells per ring (default 8)",
type=int,
default=8)
parser.add_argument('-npt',
metavar='N',
help="number of cells per type (default 8)",
type=int,
default=8)
parser.add_argument("-branch",
metavar='N',
nargs=2,
help="range of branches per cell (default 10 20)",
type=int,
default=[10, 20])
parser.add_argument("-compart",
metavar='N',
nargs=2,
help="range of compartments per branch (default [1,1])",
type=int,
default=[1, 1])
parser.add_argument("-tstop",
metavar='float',
help="stop time (ms) (default 100.0)",
type=float,
default=100.)
parser.add_argument("-method",
dest='method',
metavar='N',
help="0-fixed, 1-global cvode, 2-local cvode",
type=int,
default=0)
parser.add_argument("-2nd_order_thresh",
dest='thresh_order2',
action='store_true',
help="2nd order correct threshold detection (cvode only)",
default=False)
parser.add_argument("-gran",
metavar='N',
help="global Random123 index (default 0)",
type=int,
default=0)
parser.add_argument("-rparm",
dest='rparm',
action='store_true',
help="randomize parameters",
default=False)
parser.add_argument("-filemode",
dest='filemode',
action='store_true',
help="Run CoreNEURON with file mode",
default=False)
parser.add_argument("-dumpmodel",
dest='dumpmodel',
action='store_true',
help="Dump in memory model to file to coredat directory",
default=False)
parser.add_argument("-gpu",
dest='gpu',
action='store_true',
help="Run CoreNEURON on GPU",
default=False)
parser.add_argument('-permute',
metavar='N',
help="permute option for cell topology (default 0)",
type=int,
default=0)
parser.add_argument("-show", action='store_true', help="show type topologies", default=False)
parser.add_argument("-gap", action='store_true', help="use gap junctions", default=False)
parser.add_argument("-coreneuron", action='store_true', help="run coreneuron", default=False)
parser.add_argument("-nt", metavar='N', help="nthread", type=int, default=1)
parser.add_argument("-multisplit", action='store_true', default=False,
help="intra-rank thread balance. All pieces of cell on same rank.")
parser.add_argument("-registermapping",
dest='register_mapping',
action='store_true',
help="write section-segment mapping to gid_3.dat file, used for BBP reporting",
default=False)