|
1114 | 1114 | run: |
1115 | 1115 | - import os; os.system("python mosinit.py"); quit(); |
1116 | 1116 | script: |
1117 | | - - 2to3 -w . |
1118 | 1117 | - sed -i 's/h.tstop = 2500/h.tstop = 1500/g' mosinit.py # reduce sim time |
1119 | 1118 | 194897: |
1120 | 1119 | python: true |
1121 | 1120 | run: |
1122 | 1121 | - import os; os.system("python main.py"); quit(); |
1123 | 1122 | 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 |
1132 | 1123 | #reduce sim time (need to reduce more) |
1133 | 1124 | - sed -i "s/s.trainTime =/s.trainTime = 50#/g" network.py |
1134 | 1125 | - sed -i "s/testTime =/testTime = 50#/g" shared.py |
|
1138 | 1129 | run: |
1139 | 1130 | - import os; os.system("python mosinit.py"); quit(); |
1140 | 1131 | script: |
1141 | | - - 2to3 -w . |
1142 | 1132 | - sed -i 's/pyplot.show()/pyplot.show(block=False);pyplot.pause(1);pyplot.close();quit()/' MAT_Neuron_StepCurrent.py |
1143 | 1133 | 186768: |
1144 | 1134 | python: true |
1145 | 1135 | run: |
1146 | 1136 | - import os; os.system("python mosinit.py"); quit(); |
1147 | 1137 | script: |
1148 | | - - 2to3 -w . |
1149 | | - - reindent . |
1150 | 1138 | - sed -i 's/tstop =/tstop = 100#/g' mosinit.py |
1151 | 1139 | 189922: |
1152 | 1140 | python: true |
1153 | 1141 | run: |
1154 | 1142 | - import os; os.system("python mosinit.py"); quit(); |
1155 | 1143 | script: |
1156 | | - - 2to3 -w . |
1157 | 1144 | - sed -i 's/plt.show()/plt.show(block=False);plt.pause(1);plt.close();quit()/' clay_mohit.py |
1158 | 1145 | 195615: |
1159 | 1146 | python: true |
1160 | 1147 | run: |
1161 | 1148 | - import os; os.system("python sim.py PTcell.cfg"); quit(); |
1162 | 1149 | 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 |
1166 | 1150 | - sed -i "s/baset = /baset = 2900.0#/g;s/tstop = 3000.0/tstop = 1000.0/g" PTcell.cfg # reduce sim time |
1167 | 1151 | 139421: |
1168 | 1152 | python: true |
1169 | 1153 | run: |
1170 | 1154 | - import os; os.system("python mosinit.py"); quit(); |
1171 | 1155 | script: |
1172 | | - - 2to3 -w . |
1173 | 1156 | - sed -i -e 's/tstop = /tstop = 10#/g' mosinit.py |
1174 | 1157 | 144586: |
1175 | 1158 | python: true |
1176 | 1159 | run: |
1177 | 1160 | - import os; os.system("python mosinit.py"); quit(); |
1178 | 1161 | script: |
1179 | | - - 2to3 -w . |
1180 | 1162 | - sed -i 's/nq = anet.randruns(/nq = anet.randruns(1000)#/g' mosinit.py |
1181 | 1163 | 244412: |
1182 | 1164 | python: true |
1183 | 1165 | model_dir: mod_files |
1184 | 1166 | run: |
1185 | 1167 | - import os; os.system("python mosinit.py"); quit(); |
1186 | 1168 | script: |
1187 | | - - 2to3 -w . |
1188 | 1169 | - sed -i 's/Run_GUI/run_GUI/g' mosinit.py |
1189 | 1170 | 39948: |
1190 | 1171 | python: true |
1191 | 1172 | run: |
1192 | 1173 | - import os; os.system("python mosinit.py"); quit(); |
1193 | | - script: |
1194 | | - - 2to3 -w . |
1195 | 1174 | 195569: |
1196 | 1175 | python: true |
1197 | 1176 | run: |
1198 | 1177 | - import os; os.system("python mosinit.py"); quit(); |
1199 | 1178 | script: |
1200 | | - - 2to3 -w . |
1201 | | - - sed -i "s/f = open(fname)/f = open(fname,'rb')/g" fig2a_show.py |
1202 | 1179 | - sed -i 's/plt.show()/plt.show(block=False);plt.pause(1);plt.close()/g' fig2a_show.py |
1203 | 1180 | 249404: |
1204 | 1181 | python: true |
|
1209 | 1186 | run: |
1210 | 1187 | - import os; os.system("python mosinit.py"); quit(); |
1211 | 1188 | script: |
1212 | | - - 2to3 -w . |
1213 | 1189 | - sed -i 's/pyl.show()/pyl.show(block=False);pyl.pause(1);pyl.close()/g' model.py |
1214 | 1190 | # find * -name run.py |
1215 | 1191 | 144511: |
1216 | 1192 | python: true |
1217 | 1193 | run: |
1218 | 1194 | - import os; os.system("python run.py"); quit(); |
1219 | | - script: |
1220 | | - - 2to3 -w . |
1221 | 1195 | 229276: |
1222 | 1196 | model_dir: mechanisms |
1223 | 1197 | script: |
|
1228 | 1202 | run: |
1229 | 1203 | - import os; os.system("python sim.py 1 1 100"); quit(); |
1230 | 1204 | script: |
1231 | | - - 2to3 -w . |
1232 | | - - reindent . |
1233 | 1205 | - sed -i 's/show()/show(block=False);pause(1);close()/g' sim.py |
1234 | 1206 | 264834: |
1235 | 1207 | python: true |
1236 | 1208 | model_dir: mechanisms |
1237 | 1209 | run: |
1238 | 1210 | - import os; os.system("python run.py --plot trace"); quit(); |
1239 | 1211 | script: |
1240 | | - - 2to3 -w . |
1241 | 1212 | # reduce sim time |
1242 | 1213 | - sed -i 's/,180)/,10)/g;s/,500)/,10)/g' run.py |
1243 | 1214 | 151685: |
|
0 commit comments