mirror of
https://github.com/wassname/scikit-image.git
synced 2026-09-10 12:35:06 +08:00
io: Add null-plugin to simplify testing.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
[null]
|
||||
description = Default plugin that does nothing
|
||||
provides = imshow, _app_show
|
||||
@@ -0,0 +1,15 @@
|
||||
__all__ = ['imshow', '_app_show']
|
||||
|
||||
import warnings
|
||||
|
||||
message = '''\
|
||||
No plugin has been loaded. Please refer to
|
||||
|
||||
scikits.image.io.plugins()
|
||||
|
||||
for a list of available plugins.'''
|
||||
|
||||
def imshow(*args, **kwargs):
|
||||
warnings.warn(RuntimeWarning(message))
|
||||
|
||||
_app_show = imshow
|
||||
Reference in New Issue
Block a user