From 5e780bb27f1bd8d4b1a8705ee8cfe19018d3caf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Sun, 31 Jan 2016 18:51:23 +0100 Subject: [PATCH] Fix unknown Example section warning --- skimage/external/tifffile/tifffile.py | 4 ++-- skimage/novice/__init__.py | 4 ++-- skimage/restoration/_denoise.py | 4 ++-- skimage/restoration/inpaint.py | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/skimage/external/tifffile/tifffile.py b/skimage/external/tifffile/tifffile.py index 817bb44f..c30120d7 100644 --- a/skimage/external/tifffile/tifffile.py +++ b/skimage/external/tifffile/tifffile.py @@ -3104,8 +3104,8 @@ def _replace_by(module_function, package=None, warn=False): func : function Wrapped function, hopefully calling a function in another module. - Example - ------- + Examples + -------- >>> @_replace_by('_tifffile.decodepackbits') ... def decodepackbits(encoded): ... raise NotImplementedError diff --git a/skimage/novice/__init__.py b/skimage/novice/__init__.py index 058f3c82..02da082b 100644 --- a/skimage/novice/__init__.py +++ b/skimage/novice/__init__.py @@ -19,8 +19,8 @@ the normal, array-oriented image functions used by scikit-image. instead of row, column. -Example -------- +Examples +-------- We can create a Picture object open opening an image file: >>> from skimage import novice diff --git a/skimage/restoration/_denoise.py b/skimage/restoration/_denoise.py index 62985cc7..07819fa0 100644 --- a/skimage/restoration/_denoise.py +++ b/skimage/restoration/_denoise.py @@ -55,8 +55,8 @@ def denoise_bilateral(image, win_size=5, sigma_range=None, sigma_spatial=1, ---------- .. [1] http://users.soe.ucsc.edu/~manduchi/Papers/ICCV98.pdf - Example - ------- + Examples + -------- >>> from skimage import data, img_as_float >>> astro = img_as_float(data.astronaut()) >>> astro = astro[220:300, 220:320] diff --git a/skimage/restoration/inpaint.py b/skimage/restoration/inpaint.py index bf696e04..5ecd28c7 100644 --- a/skimage/restoration/inpaint.py +++ b/skimage/restoration/inpaint.py @@ -92,8 +92,8 @@ def inpaint_biharmonic(img, mask, multichannel=False): out : (M[, N[, ..., P]][, C]) ndarray Input image with masked pixels inpainted. - Example - ------- + Examples + -------- >>> img = np.tile(np.square(np.linspace(0, 1, 5)), (5, 1)) >>> mask = np.zeros_like(img) >>> mask[2, 2:] = 1 @@ -111,11 +111,11 @@ def inpaint_biharmonic(img, mask, multichannel=False): if img.ndim < 1: raise ValueError('Input array has to be at least 1D') - + img_baseshape = img.shape[:-1] if multichannel else img.shape if img_baseshape != mask.shape: raise ValueError('Input arrays have to be the same shape') - + if np.ma.isMaskedArray(img): raise TypeError('Masked arrays are not supported')