@@ -95,7 +95,7 @@ You can bind a key to run pyflakes in the current buffer.
9595 Menu: TextMate -> Preferences -> Advanced -> Shell variables, add a
9696 shell variable::
9797
98- TM_PYCHECKER= /Library/Frameworks/Python.framework/Versions/Current/bin/pyflakes
98+ TM_PYCHECKER = /Library/Frameworks/Python.framework/Versions/Current/bin/pyflakes
9999
100100 Then `Ctrl-Shift-V ` is binded to a pyflakes report
101101
@@ -245,13 +245,13 @@ Here we debug the file :download:`index_error.py`. When running it, an
245245 In [1]: %run index_error.py
246246 ---------------------------------------------------------------------------
247247 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>()
249249 6
250250 7 if __name__ == '__main__':
251251 ----> 8 index_error()
252252 9
253253
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()
255255 3 def index_error():
256256 4 lst = list('foobar')
257257 ----> 5 print lst[len(lst)]
@@ -261,7 +261,7 @@ Here we debug the file :download:`index_error.py`. When running it, an
261261 IndexError: list index out of range
262262
263263 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()
265265 4 lst = list('foobar')
266266 ----> 5 print lst[len(lst)]
267267 6
@@ -292,7 +292,7 @@ Here we debug the file :download:`index_error.py`. When running it, an
292292 you can call the script with ``python -m pdb script.py ``::
293293
294294 $ 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>()
296296 -> """Small snippet to raise an IndexError."""
297297 (Pdb) continue
298298 Traceback (most recent call last):
@@ -310,7 +310,7 @@ Here we debug the file :download:`index_error.py`. When running it, an
310310 IndexError: list index out of range
311311 Uncaught exception. Entering post mortem debugging
312312 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()
314314 -> print lst[len(lst)]
315315 (Pdb)
316316
@@ -331,7 +331,7 @@ Indeed the code runs, but the filtering does not work well.
331331 *** Blank or comment
332332 * ** Blank or comment
333333 *** 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
335335 NOTE: Enter 'c' at the ipdb> prompt to start your script.
336336 > <string>(1)<module>()
337337
@@ -340,20 +340,20 @@ Indeed the code runs, but the filtering does not work well.
340340 .. sourcecode :: ipython
341341
342342 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>()
344344 3
345345 1---> 4 import numpy as np
346346 5 import scipy as sp
347347
348348 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
350350
351351* Continue execution to next breakpoint with ``c(ont(inue)) ``:
352352
353353 .. sourcecode :: ipython
354354
355355 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()
357357 33 """
358358 2--> 34 noisy_img = noisy_img
359359 35 denoised_img = local_mean(noisy_img, size=size)
@@ -365,13 +365,13 @@ Indeed the code runs, but the filtering does not work well.
365365 .. sourcecode :: ipython
366366
367367 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()
369369 2 34 noisy_img = noisy_img
370370 ---> 35 denoised_img = local_mean(noisy_img, size=size)
371371 36 l_var = local_var(noisy_img, size=size)
372372
373373 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()
375375 35 denoised_img = local_mean(noisy_img, size=size)
376376 ---> 36 l_var = local_var(noisy_img, size=size)
377377 37 for i in range(3):
@@ -382,7 +382,7 @@ Indeed the code runs, but the filtering does not work well.
382382 .. sourcecode :: ipython
383383
384384 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()
386386 36 l_var = local_var(noisy_img, size=size)
387387 ---> 37 for i in range(3):
388388 38 res = noisy_img - denoised_img
0 commit comments