mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-15 11:25:53 +08:00
Fix doctest which causes side-effects.
I'm not sure that there's a safe way to write this example as a doctest, but I think this will pass on Travis (although it still has side-effects.
This commit is contained in:
@@ -202,10 +202,10 @@ def use_plugin(name, kind=None):
|
||||
Examples
|
||||
--------
|
||||
|
||||
To use a plugin named 'null' as the default image reader, you would write:
|
||||
To use Matplotlib as the default image reader, you would write:
|
||||
|
||||
>>> from skimage import io
|
||||
>>> io.use_plugin('null', 'imread')
|
||||
>>> io.use_plugin('matplotlib', '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
|
||||
|
||||
Reference in New Issue
Block a user