@@ -95,7 +95,7 @@ You can bind a key to run pyflakes in the current buffer.
95
95
Menu: TextMate -> Preferences -> Advanced -> Shell variables, add a
96
96
shell variable::
97
97
98
- TM_PYCHECKER= /Library/Frameworks/Python.framework/Versions/Current/bin/pyflakes
98
+ TM_PYCHECKER = /Library/Frameworks/Python.framework/Versions/Current/bin/pyflakes
99
99
100
100
Then `Ctrl-Shift-V ` is binded to a pyflakes report
101
101
@@ -245,13 +245,13 @@ Here we debug the file :download:`index_error.py`. When running it, an
245
245
In [1]: %run index_error.py
246
246
---------------------------------------------------------------------------
247
247
IndexError Traceback (most recent call last)
248
- /home/varoquau/dev/scipy-lecture-notes/advanced/debugging_optimizing /index_error.py in <module>()
248
+ /home/varoquau/dev/scipy-lecture-notes/advanced/debugging /index_error.py in <module>()
249
249
6
250
250
7 if __name__ == '__main__':
251
251
----> 8 index_error()
252
252
9
253
253
254
- /home/varoquau/dev/scipy-lecture-notes/advanced/debugging_optimizing /index_error.py in index_error()
254
+ /home/varoquau/dev/scipy-lecture-notes/advanced/debugging /index_error.py in index_error()
255
255
3 def index_error():
256
256
4 lst = list('foobar')
257
257
----> 5 print lst[len(lst)]
@@ -261,7 +261,7 @@ Here we debug the file :download:`index_error.py`. When running it, an
261
261
IndexError: list index out of range
262
262
263
263
In [2]: %debug
264
- > /home/varoquau/dev/scipy-lecture-notes/advanced/debugging_optimizing /index_error.py(5)index_error()
264
+ > /home/varoquau/dev/scipy-lecture-notes/advanced/debugging /index_error.py(5)index_error()
265
265
4 lst = list('foobar')
266
266
----> 5 print lst[len(lst)]
267
267
6
@@ -292,7 +292,7 @@ Here we debug the file :download:`index_error.py`. When running it, an
292
292
you can call the script with ``python -m pdb script.py ``::
293
293
294
294
$ python -m pdb index_error.py
295
- > /home/varoquau/dev/scipy-lecture-notes/advanced/debugging_optimizing /index_error.py(1)<module>()
295
+ > /home/varoquau/dev/scipy-lecture-notes/advanced/optimizing /index_error.py(1)<module>()
296
296
-> """Small snippet to raise an IndexError."""
297
297
(Pdb) continue
298
298
Traceback (most recent call last):
@@ -310,7 +310,7 @@ Here we debug the file :download:`index_error.py`. When running it, an
310
310
IndexError: list index out of range
311
311
Uncaught exception. Entering post mortem debugging
312
312
Running 'cont' or 'step' will restart the program
313
- > /home/varoquau/dev/scipy-lecture-notes/advanced/debugging_optimizing /index_error.py(5)index_error()
313
+ > /home/varoquau/dev/scipy-lecture-notes/advanced/optimizing /index_error.py(5)index_error()
314
314
-> print lst[len(lst)]
315
315
(Pdb)
316
316
@@ -331,7 +331,7 @@ Indeed the code runs, but the filtering does not work well.
331
331
*** Blank or comment
332
332
* ** Blank or comment
333
333
*** Blank or comment
334
- Breakpoint 1 at /home/varoquau/dev/scipy-lecture-notes/advanced/debugging_optimizing /wiener_filtering.py:4
334
+ Breakpoint 1 at /home/varoquau/dev/scipy-lecture-notes/advanced/optimizing /wiener_filtering.py:4
335
335
NOTE: Enter 'c' at the ipdb> prompt to start your script.
336
336
> <string>(1)<module>()
337
337
@@ -340,20 +340,20 @@ Indeed the code runs, but the filtering does not work well.
340
340
.. sourcecode :: ipython
341
341
342
342
ipdb> n
343
- > /home/varoquau/dev/scipy-lecture-notes/advanced/debugging_optimizing /wiener_filtering.py(4)<module>()
343
+ > /home/varoquau/dev/scipy-lecture-notes/advanced/optimizing /wiener_filtering.py(4)<module>()
344
344
3
345
345
1---> 4 import numpy as np
346
346
5 import scipy as sp
347
347
348
348
ipdb> b 34
349
- Breakpoint 2 at /home/varoquau/dev/scipy-lecture-notes/advanced/debugging_optimizing /wiener_filtering.py:34
349
+ Breakpoint 2 at /home/varoquau/dev/scipy-lecture-notes/advanced/optimizing /wiener_filtering.py:34
350
350
351
351
* Continue execution to next breakpoint with ``c(ont(inue)) ``:
352
352
353
353
.. sourcecode :: ipython
354
354
355
355
ipdb> c
356
- > /home/varoquau/dev/scipy-lecture-notes/advanced/debugging_optimizing /wiener_filtering.py(34)iterated_wiener()
356
+ > /home/varoquau/dev/scipy-lecture-notes/advanced/optimizing /wiener_filtering.py(34)iterated_wiener()
357
357
33 """
358
358
2--> 34 noisy_img = noisy_img
359
359
35 denoised_img = local_mean(noisy_img, size=size)
@@ -365,13 +365,13 @@ Indeed the code runs, but the filtering does not work well.
365
365
.. sourcecode :: ipython
366
366
367
367
ipdb> s
368
- > /home/varoquau/dev/scipy-lecture-notes/advanced/debugging_optimizing /wiener_filtering.py(35)iterated_wiener()
368
+ > /home/varoquau/dev/scipy-lecture-notes/advanced/optimizing /wiener_filtering.py(35)iterated_wiener()
369
369
2 34 noisy_img = noisy_img
370
370
---> 35 denoised_img = local_mean(noisy_img, size=size)
371
371
36 l_var = local_var(noisy_img, size=size)
372
372
373
373
ipdb> n
374
- > /home/varoquau/dev/scipy-lecture-notes/advanced/debugging_optimizing /wiener_filtering.py(36)iterated_wiener()
374
+ > /home/varoquau/dev/scipy-lecture-notes/advanced/optimizing /wiener_filtering.py(36)iterated_wiener()
375
375
35 denoised_img = local_mean(noisy_img, size=size)
376
376
---> 36 l_var = local_var(noisy_img, size=size)
377
377
37 for i in range(3):
@@ -382,7 +382,7 @@ Indeed the code runs, but the filtering does not work well.
382
382
.. sourcecode :: ipython
383
383
384
384
ipdb> n
385
- > /home/varoquau/dev/scipy-lecture-notes/advanced/debugging_optimizing /wiener_filtering.py(37)iterated_wiener()
385
+ > /home/varoquau/dev/scipy-lecture-notes/advanced/optimizing /wiener_filtering.py(37)iterated_wiener()
386
386
36 l_var = local_var(noisy_img, size=size)
387
387
---> 37 for i in range(3):
388
388
38 res = noisy_img - denoised_img
0 commit comments