-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocheckups_NMDAblock.py
More file actions
34 lines (26 loc) · 1.02 KB
/
docheckups_NMDAblock.py
File metadata and controls
34 lines (26 loc) · 1.02 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
import sys
import os
mystrs = 'python3 sim_mmns_2pm_sep_noISDIDD_savespikesonly.py 40 0.3 150 130 17.5 30.0 80.0 5.827500000000001 9.99 26.64 25.0 25.0 1000 0.0 0.95 10.0 10.0 10.0 250.0'.split(' ')
if len(sys.argv) > 1:
mystrs = sys.argv[1:]
attrs = mystrs
mystr = ' '.join(mystrs)
mychanges = [[[9,10,11], '0.0']]
myadds = [' 1',' 2',' 3',' 4',' 5',' 6',' 7',' 8',' 9', ' 10']
myadds_noNMDA = [' 1',' 2',' 3',' 4',' 5',' 6',' 7',' 8',' 9', ' 10']
for ichange in range(0,len(mychanges)):
these_attrs = attrs[:]
if type(mychanges[ichange][0]) is list:
for imany in range(0,len(mychanges[ichange][0])):
these_attrs[mychanges[ichange][0][imany]] = mychanges[ichange][1]
else:
these_attrs[mychanges[ichange][0]] = mychanges[ichange][1]
this_str = ' '.join(these_attrs)
for iadd in range(0,len(myadds_noNMDA)):
this_str_2 = this_str + myadds_noNMDA[iadd]
print(this_str_2)
os.system(this_str_2)
for iadd in range(0,len(myadds)):
this_str = mystr + myadds[iadd]
print(this_str)
os.system(this_str)