Minor fixes

- Use absolute imports so __main__ examples work
- PEP8: 2 blank lines
This commit is contained in:
Tony S Yu
2013-06-29 10:56:03 -05:00
parent 2566171929
commit 6cef8727a0
4 changed files with 4 additions and 2 deletions
+1
View File
@@ -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()
+1
View File
@@ -140,5 +140,6 @@ def test_view_as_windows_2D():
[13, 14, 15],
[17, 18, 19]]]]))
if __name__ == '__main__':
np.testing.run_module_suite()
+1 -1
View File
@@ -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']
+1 -1
View File
@@ -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']