Skip to content

Commit f709d15

Browse files
committed
* add h5py run dependency
* 229276 has mosinit.hoc * reduce sim times & close plots
1 parent 1a175c9 commit f709d15

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

modeldb/modeldb-run.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,13 +1139,15 @@
11391139
- import os; os.system("python mosinit.py"); quit();
11401140
script:
11411141
- 2to3 -w .
1142+
- sed -i 's/pyplot.show()/pyplot.show(block=False);pyplot.pause(1);pyplot.close();quit()/' MAT_Neuron_StepCurrent.py
11421143
186768:
11431144
python: true
11441145
run:
11451146
- import os; os.system("python mosinit.py"); quit();
11461147
script:
11471148
- 2to3 -w .
11481149
- reindent .
1150+
- sed -i 's/tstop =/tstop = 100#/g' mosinit.py
11491151
189922:
11501152
python: true
11511153
run:
@@ -1161,18 +1163,21 @@
11611163
- 2to3 -w .
11621164
- reindent .
11631165
- sed -i "s/from time import time, clock/from time import time/g;67s/ exec(cmd)/ exec(cmd,globals())/;s/'w'/'wb'/g" sim.py
1166+
- sed -i "s/baset = /baset = 2900.0#/g" PTcell.cfg
11641167
139421:
11651168
python: true
11661169
run:
11671170
- import os; os.system("python mosinit.py"); quit();
11681171
script:
11691172
- 2to3 -w .
1173+
- sed -i -e 's/tstop = /tstop = 10#/g' mosinit.py
11701174
144586:
11711175
python: true
11721176
run:
11731177
- import os; os.system("python mosinit.py"); quit();
11741178
script:
11751179
- 2to3 -w .
1180+
- sed -i 's/nq = anet.randruns(/nq = anet.randruns(1000)#/g' mosinit.py
11761181
244412:
11771182
python: true
11781183
model_dir: mod_files
@@ -1194,6 +1199,7 @@
11941199
script:
11951200
- 2to3 -w .
11961201
- sed -i "s/f = open(fname)/f = open(fname,'rb')/g" fig2a_show.py
1202+
- sed -i 's/plt.show()/plt.show(block=False);plt.pause(1);plt.close()/g' fig2a_show.py
11971203
249404:
11981204
python: true
11991205
run:
@@ -1204,6 +1210,7 @@
12041210
- import os; os.system("python mosinit.py"); quit();
12051211
script:
12061212
- 2to3 -w .
1213+
- sed -i 's/pyl.show()/pyl.show(block=False);pyl.pause(1);pyl.close()/g' model.py
12071214
# find * -name run.py
12081215
144511:
12091216
python: true
@@ -1212,13 +1219,9 @@
12121219
script:
12131220
- 2to3 -w .
12141221
229276:
1215-
python: true
12161222
model_dir: mechanisms
1217-
run:
1218-
- import os; os.system("python run.py"); quit();
12191223
script:
1220-
- 2to3 -w .
1221-
- sed -i 's/cADpyr232_L5_TTPC1_b6836fcf6f(1 if add_synapses else 0)/cADpyr232_L5_TTPC1_b6836fcf6f(1 if add_synapses else 0,1)/g' run.py
1224+
- sed -i -e 's/tstop=/tstop=100\/\//g' createsimulation.hoc
12221225
151282:
12231226
python: true
12241227
model_dir: .
@@ -1242,3 +1245,4 @@
12421245
- import os; os.system("python run.py param/gamma_L5weak_L2weak.param"); quit();
12431246
script:
12441247
- sed -i 's/from mpi4py/#from mpi4py/g' run.py
1248+
- sed -i "s/nrn.tstop =/nrn.tstop = 50#/g" run.py

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
'scipy',
1919
'2to3',
2020
'reindent',
21+
'h5py'
2122
]
2223

2324
with open('README.md', 'r', encoding='utf-8') as f:

0 commit comments

Comments
 (0)