-
Notifications
You must be signed in to change notification settings - Fork 3
/
pBGLaunchNoQuit.000
38 lines (24 loc) · 1.23 KB
/
pBGLaunchNoQuit.000
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
strdef str
// simulation time reduced by factor of 10 for modeldb autolaunch
tstop = 1000 //set the simulation time in milliseconds
netNum = 0
getOutput("pNets.dat", netNum, 1) //load a parameter set
setMPTPinput() //configure parameters for MPTP settings
//setNORMALinput() //configure parameters for Normal settings
runNum = 0
pnm.prun() //run the model
pnm.gatherspikes() //collect spikes from nodes (required for parallel runs)
netStats(res) //calculate population statistics
saveData(netNum, res) //append results to a file stats000.txt
sprint(str, "spikes%03d.txt", runNum) //put identifying number in filename
saveSpikes(str) //save spike time data for all cells to spikes000.txt
runNum = 1
setDBS(.4,.2) //activate DBS for 40% of STN and 20% of GPi axons
pnm.prun() //run the model
pnm.gatherspikes() //collect spikes from nodes (required for parallel runs)
netStats(res) //calculate population statistics
saveData(netNum, res) //append results to a file stats000.txt
sprint(str, "spikes%03d.txt", runNum) //put identifying number in filename
saveSpikes(str) //save spike time data for all cells to spikes000.txt
// no quit for auto-launch demo
// quit() //exit Neuron and close all windows