Skip to content

Commit

Permalink
* add h5py run dependency
Browse files Browse the repository at this point in the history
* 229276 has mosinit.hoc
* reduce sim times & close plots
  • Loading branch information
alexsavulescu committed Jun 25, 2022
1 parent 1a175c9 commit e73f28b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
13 changes: 8 additions & 5 deletions modeldb/modeldb-run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1139,13 +1139,15 @@
- import os; os.system("python mosinit.py"); quit();
script:
- 2to3 -w .
- sed -i 's/pyplot.show()/pyplot.show(block=False);pyplot.pause(1);pyplot.close();quit()/' MAT_Neuron_StepCurrent.py
186768:
python: true
run:
- import os; os.system("python mosinit.py"); quit();
script:
- 2to3 -w .
- reindent .
- sed -i 's/tstop =/tstop = 100#/g' mosinit.py
189922:
python: true
run:
Expand All @@ -1161,6 +1163,7 @@
- 2to3 -w .
- reindent .
- 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
- sed -i "s/baset = /baset = 2900.0#/g" PTcell.cfg
139421:
python: true
run:
Expand All @@ -1173,6 +1176,7 @@
- import os; os.system("python mosinit.py"); quit();
script:
- 2to3 -w .
- sed -i 's/nq = anet.randruns(/nq = anet.randruns(1000)#/g' mosinit.py
244412:
python: true
model_dir: mod_files
Expand All @@ -1194,6 +1198,7 @@
script:
- 2to3 -w .
- sed -i "s/f = open(fname)/f = open(fname,'rb')/g" fig2a_show.py
- sed -i 's/plt.show()/plt.show(block=False);plt.pause(1);plt.close()/g' fig2a_show.py
249404:
python: true
run:
Expand All @@ -1204,6 +1209,7 @@
- import os; os.system("python mosinit.py"); quit();
script:
- 2to3 -w .
- sed -i 's/pyl.show()/pyl.show(block=False);pyl.pause(1);pyl.close()/g' model.py
# find * -name run.py
144511:
python: true
Expand All @@ -1212,13 +1218,9 @@
script:
- 2to3 -w .
229276:
python: true
model_dir: mechanisms
run:
- import os; os.system("python run.py"); quit();
script:
- 2to3 -w .
- 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
- sed -i -e 's/tstop=/tstop=100\/\//g' createsimulation.hoc
151282:
python: true
model_dir: .
Expand All @@ -1242,3 +1244,4 @@
- import os; os.system("python run.py param/gamma_L5weak_L2weak.param"); quit();
script:
- sed -i 's/from mpi4py/#from mpi4py/g' run.py
- sed -i "s/nrn.tstop =/nrn.tstop = 50#/g" run.py
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
'scipy',
'2to3',
'reindent',
'h5py'
]

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

0 comments on commit e73f28b

Please sign in to comment.