Skip to content

Commit

Permalink
drop py3 migration commands (PRs opened)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsavulescu committed Dec 19, 2022
1 parent 1e23ae3 commit 4d5959c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
31 changes: 0 additions & 31 deletions modeldb/modeldb-run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1114,21 +1114,12 @@
run:
- import os; os.system("python mosinit.py"); quit();
script:
- 2to3 -w .
- sed -i 's/h.tstop = 2500/h.tstop = 1500/g' mosinit.py # reduce sim time
194897:
python: true
run:
- import os; os.system("python main.py"); quit();
script:
- 2to3 -w .
- reindent .
# TODO - PR to update model for python3 support
- sed -i 's/# matplotlib/matplotlib/g' main.py
- sed -i 's/figure, hold, isscalar/figure, isscalar/g;s/hold(True)/#hold(True)/g' analysis.py
- sed -i 's/hashlib.md5(obj)/hashlib.md5(obj.encode("utf-8"))/g' shared.py
- sed -i 's/cell.t0 = .0/#cell.t0 = .0/g' izhi.py
- sed -i "s/(nCells\/s.nMuscles)/int(nCells\/s.nMuscles)/g;s/'w'/'wb'/g;s/s.hostspikevecs\[c\]/\[s.hostspikevecs\[c\].x\[i\] for i in range(s.hostspikevecs\[c\].size())\]/g" network.py
#reduce sim time (need to reduce more)
- sed -i "s/s.trainTime =/s.trainTime = 50#/g" network.py
- sed -i "s/testTime =/testTime = 50#/g" shared.py
Expand All @@ -1138,67 +1129,51 @@
run:
- 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:
- import os; os.system("python mosinit.py"); quit();
script:
- 2to3 -w .
- sed -i 's/plt.show()/plt.show(block=False);plt.pause(1);plt.close();quit()/' clay_mohit.py
195615:
python: true
run:
- import os; os.system("python sim.py PTcell.cfg"); quit();
script:
- 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;s/tstop = 3000.0/tstop = 1000.0/g" PTcell.cfg # reduce sim time
139421:
python: true
run:
- import os; os.system("python mosinit.py"); quit();
script:
- 2to3 -w .
- sed -i -e 's/tstop = /tstop = 10#/g' mosinit.py
144586:
python: true
run:
- 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
run:
- import os; os.system("python mosinit.py"); quit();
script:
- 2to3 -w .
- sed -i 's/Run_GUI/run_GUI/g' mosinit.py
39948:
python: true
run:
- import os; os.system("python mosinit.py"); quit();
script:
- 2to3 -w .
195569:
python: true
run:
- import os; os.system("python mosinit.py"); quit();
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
Expand All @@ -1209,15 +1184,12 @@
run:
- 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
run:
- import os; os.system("python run.py"); quit();
script:
- 2to3 -w .
229276:
model_dir: mechanisms
script:
Expand All @@ -1228,16 +1200,13 @@
run:
- import os; os.system("python sim.py 1 1 100"); quit();
script:
- 2to3 -w .
- reindent .
- sed -i 's/show()/show(block=False);pause(1);close()/g' sim.py
264834:
python: true
model_dir: mechanisms
run:
- import os; os.system("python run.py --plot trace"); quit();
script:
- 2to3 -w .
# reduce sim time
- sed -i 's/,180)/,10)/g;s/,500)/,10)/g' run.py
151685:
Expand Down
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
'ipython',
'matplotlib',
'scipy',
'2to3',
'reindent',
'h5py'
]

Expand Down

0 comments on commit 4d5959c

Please sign in to comment.