mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-04 18:49:24 +08:00
Minor fixes
- Use absolute imports so __main__ examples work - PEP8: 2 blank lines
This commit is contained in:
@@ -80,5 +80,6 @@ def test_error_ndim():
|
||||
arr_error = np.random.randn(1, 2, 3, 4)
|
||||
montage2d(arr_error)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
np.testing.run_module_suite()
|
||||
|
||||
@@ -140,5 +140,6 @@ def test_view_as_windows_2D():
|
||||
[13, 14, 15],
|
||||
[17, 18, 19]]]]))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
np.testing.run_module_suite()
|
||||
|
||||
@@ -5,7 +5,7 @@ try:
|
||||
except ImportError:
|
||||
print("Could not import matplotlib -- skimage.viewer not available.")
|
||||
|
||||
from .base import CanvasToolBase, ToolHandles
|
||||
from skimage.viewer.canvastools.base import CanvasToolBase, ToolHandles
|
||||
|
||||
|
||||
__all__ = ['LineTool', 'ThickLineTool']
|
||||
|
||||
@@ -8,7 +8,7 @@ try:
|
||||
except ImportError:
|
||||
print("Could not import matplotlib -- skimage.viewer not available.")
|
||||
|
||||
from .base import CanvasToolBase
|
||||
from skimage.viewer.canvastools.base import CanvasToolBase
|
||||
|
||||
|
||||
__all__ = ['PaintTool']
|
||||
|
||||
Reference in New Issue
Block a user