mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-29 19:01:10 +08:00
Fix failing doctest on systems w/o PIL
This commit is contained in:
@@ -197,15 +197,19 @@ def use_plugin(name, kind=None):
|
||||
|
||||
See Also
|
||||
--------
|
||||
plugins : List of available plugins
|
||||
available_plugins : List of available plugins
|
||||
|
||||
Examples
|
||||
--------
|
||||
|
||||
Use the Python Imaging Library to read images:
|
||||
To use a plugin named 'null' as the default image reader, you would write:
|
||||
|
||||
>>> from skimage.io import use_plugin
|
||||
>>> use_plugin('pil', 'imread')
|
||||
>>> from skimage import io
|
||||
>>> io.use_plugin('null', 'imread')
|
||||
|
||||
To see a list of available plugins run ``io.available_plugins``. Note that
|
||||
this lists plugins that are defined, but the full list may not be usable
|
||||
if your system does not have the required libraries installed.
|
||||
|
||||
"""
|
||||
if kind is None:
|
||||
|
||||
Reference in New Issue
Block a user