Fix unknown Example section warning

This commit is contained in:
Johannes Schönberger
2016-01-31 18:51:23 +01:00
parent 9a9f9b205c
commit 5e780bb27f
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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]
+4 -4
View File
@@ -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')