Skip to content

Commit d4f6094

Browse files
committed
drop py3 migration commands (PRs opened)
1 parent 1e23ae3 commit d4f6094

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

modeldb/modeldb-run.yaml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,21 +1114,12 @@
11141114
run:
11151115
- import os; os.system("python mosinit.py"); quit();
11161116
script:
1117-
- 2to3 -w .
11181117
- sed -i 's/h.tstop = 2500/h.tstop = 1500/g' mosinit.py # reduce sim time
11191118
194897:
11201119
python: true
11211120
run:
11221121
- import os; os.system("python main.py"); quit();
11231122
script:
1124-
- 2to3 -w .
1125-
- reindent .
1126-
# TODO - PR to update model for python3 support
1127-
- sed -i 's/# matplotlib/matplotlib/g' main.py
1128-
- sed -i 's/figure, hold, isscalar/figure, isscalar/g;s/hold(True)/#hold(True)/g' analysis.py
1129-
- sed -i 's/hashlib.md5(obj)/hashlib.md5(obj.encode("utf-8"))/g' shared.py
1130-
- sed -i 's/cell.t0 = .0/#cell.t0 = .0/g' izhi.py
1131-
- 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
11321123
#reduce sim time (need to reduce more)
11331124
- sed -i "s/s.trainTime =/s.trainTime = 50#/g" network.py
11341125
- sed -i "s/testTime =/testTime = 50#/g" shared.py
@@ -1138,67 +1129,53 @@
11381129
run:
11391130
- import os; os.system("python mosinit.py"); quit();
11401131
script:
1141-
- 2to3 -w .
11421132
- sed -i 's/pyplot.show()/pyplot.show(block=False);pyplot.pause(1);pyplot.close();quit()/' MAT_Neuron_StepCurrent.py
11431133
186768:
11441134
python: true
11451135
run:
11461136
- import os; os.system("python mosinit.py"); quit();
11471137
script:
1148-
- 2to3 -w .
1149-
- reindent .
11501138
- sed -i 's/tstop =/tstop = 100#/g' mosinit.py
11511139
189922:
11521140
python: true
11531141
run:
11541142
- import os; os.system("python mosinit.py"); quit();
11551143
script:
1156-
- 2to3 -w .
11571144
- sed -i 's/plt.show()/plt.show(block=False);plt.pause(1);plt.close();quit()/' clay_mohit.py
11581145
195615:
11591146
python: true
11601147
run:
11611148
- import os; os.system("python sim.py PTcell.cfg"); quit();
11621149
script:
1163-
- 2to3 -w .
1164-
- reindent .
1165-
- 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
11661150
- sed -i "s/baset = /baset = 2900.0#/g;s/tstop = 3000.0/tstop = 1000.0/g" PTcell.cfg # reduce sim time
11671151
139421:
11681152
python: true
11691153
run:
11701154
- import os; os.system("python mosinit.py"); quit();
11711155
script:
1172-
- 2to3 -w .
11731156
- sed -i -e 's/tstop = /tstop = 10#/g' mosinit.py
11741157
144586:
11751158
python: true
11761159
run:
11771160
- import os; os.system("python mosinit.py"); quit();
11781161
script:
1179-
- 2to3 -w .
11801162
- sed -i 's/nq = anet.randruns(/nq = anet.randruns(1000)#/g' mosinit.py
11811163
244412:
11821164
python: true
11831165
model_dir: mod_files
11841166
run:
11851167
- import os; os.system("python mosinit.py"); quit();
11861168
script:
1187-
- 2to3 -w .
11881169
- sed -i 's/Run_GUI/run_GUI/g' mosinit.py
11891170
39948:
11901171
python: true
11911172
run:
11921173
- import os; os.system("python mosinit.py"); quit();
1193-
script:
1194-
- 2to3 -w .
11951174
195569:
11961175
python: true
11971176
run:
11981177
- import os; os.system("python mosinit.py"); quit();
11991178
script:
1200-
- 2to3 -w .
1201-
- sed -i "s/f = open(fname)/f = open(fname,'rb')/g" fig2a_show.py
12021179
- sed -i 's/plt.show()/plt.show(block=False);plt.pause(1);plt.close()/g' fig2a_show.py
12031180
249404:
12041181
python: true
@@ -1209,15 +1186,12 @@
12091186
run:
12101187
- import os; os.system("python mosinit.py"); quit();
12111188
script:
1212-
- 2to3 -w .
12131189
- sed -i 's/pyl.show()/pyl.show(block=False);pyl.pause(1);pyl.close()/g' model.py
12141190
# find * -name run.py
12151191
144511:
12161192
python: true
12171193
run:
12181194
- import os; os.system("python run.py"); quit();
1219-
script:
1220-
- 2to3 -w .
12211195
229276:
12221196
model_dir: mechanisms
12231197
script:
@@ -1228,16 +1202,13 @@
12281202
run:
12291203
- import os; os.system("python sim.py 1 1 100"); quit();
12301204
script:
1231-
- 2to3 -w .
1232-
- reindent .
12331205
- sed -i 's/show()/show(block=False);pause(1);close()/g' sim.py
12341206
264834:
12351207
python: true
12361208
model_dir: mechanisms
12371209
run:
12381210
- import os; os.system("python run.py --plot trace"); quit();
12391211
script:
1240-
- 2to3 -w .
12411212
# reduce sim time
12421213
- sed -i 's/,180)/,10)/g;s/,500)/,10)/g' run.py
12431214
151685:

0 commit comments

Comments
 (0)