mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-13 12:40:24 +08:00
io: Add null-plugin to simplify testing.
This commit is contained in:
@@ -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