Skip to content

Commit df64adc

Browse files
committed
fixed flake8
1 parent 8fc2d60 commit df64adc

2 files changed

Lines changed: 17 additions & 27 deletions

File tree

examples.ipynb

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,9 @@
1111
},
1212
{
1313
"cell_type": "code",
14-
"execution_count": 1,
14+
"execution_count": 2,
1515
"metadata": {},
16-
"outputs": [
17-
{
18-
"name": "stderr",
19-
"output_type": "stream",
20-
"text": [
21-
"/home/aliceharpole/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.\n",
22-
" from ._conv import register_converters as _register_converters\n"
23-
]
24-
}
25-
],
16+
"outputs": [],
2617
"source": [
2718
"from pyro import Pyro"
2819
]
@@ -36,7 +27,7 @@
3627
},
3728
{
3829
"cell_type": "code",
39-
"execution_count": 2,
30+
"execution_count": 3,
4031
"metadata": {},
4132
"outputs": [],
4233
"source": [
@@ -54,7 +45,7 @@
5445
},
5546
{
5647
"cell_type": "code",
57-
"execution_count": 3,
48+
"execution_count": 4,
5849
"metadata": {},
5950
"outputs": [
6051
{
@@ -90,7 +81,7 @@
9081
"Solver = advection\n",
9182
"Problem = smooth\n",
9283
"Simulation time = 0.0\n",
93-
"Simulation timestep number = 0\n",
84+
"Simulation step number = 0\n",
9485
"\n",
9586
"Runtime Parameters\n",
9687
"------------------\n",
@@ -140,7 +131,7 @@
140131
},
141132
{
142133
"cell_type": "code",
143-
"execution_count": 8,
134+
"execution_count": 6,
144135
"metadata": {},
145136
"outputs": [
146137
{
@@ -176,7 +167,7 @@
176167
},
177168
{
178169
"cell_type": "code",
179-
"execution_count": 9,
170+
"execution_count": 7,
180171
"metadata": {},
181172
"outputs": [
182173
{
@@ -212,7 +203,7 @@
212203
},
213204
{
214205
"cell_type": "code",
215-
"execution_count": 11,
206+
"execution_count": 8,
216207
"metadata": {},
217208
"outputs": [
218209
{
@@ -255,7 +246,7 @@
255246
},
256247
{
257248
"cell_type": "code",
258-
"execution_count": 29,
249+
"execution_count": 9,
259250
"metadata": {},
260251
"outputs": [
261252
{
@@ -280,17 +271,17 @@
280271
" 11 1.00000 0.00000\n",
281272
"\u001b[33moutputting...\u001b[0m\n",
282273
"\u001b[33moutputting...\u001b[0m\n",
283-
"vis: 5.10081672668457\n",
284-
"main: 6.263134002685547\n"
274+
"vis: 0.25228118896484375\n",
275+
"main: 0.05574655532836914\n"
285276
]
286277
},
287278
{
288279
"data": {
289280
"text/plain": [
290-
"<advection.simulation.Simulation at 0x7fe45de609e8>"
281+
"<advection.simulation.Simulation at 0x7f4f93e016a0>"
291282
]
292283
},
293-
"execution_count": 29,
284+
"execution_count": 9,
294285
"metadata": {},
295286
"output_type": "execute_result"
296287
}
@@ -310,7 +301,7 @@
310301
},
311302
{
312303
"cell_type": "code",
313-
"execution_count": 30,
304+
"execution_count": 10,
314305
"metadata": {},
315306
"outputs": [
316307
{
@@ -346,7 +337,7 @@
346337
},
347338
{
348339
"cell_type": "code",
349-
"execution_count": 31,
340+
"execution_count": 11,
350341
"metadata": {},
351342
"outputs": [],
352343
"source": [
@@ -355,7 +346,7 @@
355346
},
356347
{
357348
"cell_type": "code",
358-
"execution_count": 32,
349+
"execution_count": 12,
359350
"metadata": {},
360351
"outputs": [
361352
{
@@ -426,7 +417,7 @@
426417
},
427418
{
428419
"cell_type": "code",
429-
"execution_count": 33,
420+
"execution_count": 13,
430421
"metadata": {},
431422
"outputs": [
432423
{

pyro.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ def store_as_benchmark(self):
312312
self.sim.write(bench_file)
313313

314314

315-
316315
def parse_args():
317316
"""Parse the runtime parameters"""
318317

0 commit comments

Comments
 (0)