-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCell.g
44 lines (35 loc) · 838 Bytes
/
Cell.g
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
//genesis
//
// Cell.g - single neuron simulation
include config.g
include chan.g
include library.g
include tools.g
if({argc})
get_options {argv}
end
siminit
stage making prototypes ...
create neutral /library
disable /library
pushe /library
create compartment compartment
pope
make_channels /library
make_cell {cellproto} /library/cell
stage creating cell ...
create neutral /model
create_volume /library/cell /model/ts 1 0 0 0 0 0 0
stage setting parameters ...
setfield /model/ts[]/soma inject {inject}
stage creating data recorders ...
recspikes /model/ts[]/iseg/spike output/_spts spts
recdata /model/ts[]/soma Vm /output/vmts {simtime}
stage scheduling simulation ...
simschedule
stage simulating {simtime} sec ...
step {simtime} -time
stage all done, exiting ...
writedata /output/vmts output/_vmts
simfinish
quit