Merge pull request #445 from tonysyu/doc-tweaks

Doc tweaks
This commit is contained in:
Johannes Schönberger
2013-03-02 23:54:34 -08:00
11 changed files with 59 additions and 40 deletions
-1
View File
@@ -11,7 +11,6 @@ position of corners.
"""
import numpy as np
from matplotlib import pyplot as plt
from skimage import data
@@ -19,7 +19,6 @@ values, and use the random walker for the segmentation.
.. [1] *Random walks for image segmentation*, Leo Grady, IEEE Trans. Pattern
Anal. Mach. Intell. 2006 Nov; 28(11):1768-83
"""
print __doc__
import numpy as np
from scipy import ndimage
+11 -1
View File
@@ -69,6 +69,7 @@ import os
import shutil
import token
import tokenize
import traceback
import numpy as np
import matplotlib
@@ -247,7 +248,16 @@ def write_gallery(gallery_index, src_dir, rst_dir, cfg, depth=0):
gallery_index.write(TOCTREE_TEMPLATE % (sub_dir + '\n '.join(ex_names)))
for src_name in examples:
write_example(src_name, src_dir, rst_dir, cfg)
try:
write_example(src_name, src_dir, rst_dir, cfg)
except Exception:
print "Exception raised while running:"
print "%s in %s" % (src_name, src_dir)
print '~' * 60
traceback.print_exc()
print '~' * 60
continue
link_name = sub_dir.pjoin(src_name)
link_name = link_name.replace(os.path.sep, '_')