-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMSN_batch.py
More file actions
32 lines (27 loc) · 1.17 KB
/
MSN_batch.py
File metadata and controls
32 lines (27 loc) · 1.17 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
from netpyne import specs
from ModBatch import Batch
import numpy as np
def Synnmda():
# Create variable of type ordered dictionary (NetPyNE's customized version)
params = specs.ODict()
# fill in with parameters to explore and range of values (key has to coincide with a variable in simConfig)
params['gnmdad1'] = list(np.linspace(0.001,0.05,20))
params['gnmdad2'] = list(np.linspace(0.01,0.02,20))
# params['ampan01'] = [1,2,3,4,5]
# params['ampan02'] = [1,2,3,4,5]
# params['nmdan01'] = [1,2,3,4,5]
# params['nmdan02'] = [1,2,3,4,5]
# create Batch object with paramaters to modify, and specifying files to use
b = Batch(params=params, cfgFile='MSN_cfg.py', netParamsFile='MSN_params.py',)
# Set output folder, grid method (all param combinations), and run configuration
b.batchLabel = 'synNMDA'
b.saveFolder = 'MSN_data'
b.method = 'grid'
b.runCfg = {'type': 'mpi_bulletin',
'script': 'MSN_init.py',
'skip': True}
# Run batch simulations
b.run()
# Main code
if __name__ == '__main__':
Synnmda()