From 43d110627b8c0f0a65567cccb314c382a9f6f8f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jostein=20B=C3=B8=20Fl=C3=B8ystad?= Date: Mon, 15 Jul 2013 10:51:30 +0200 Subject: [PATCH] unwrap: PEP8 fixes. --- skimage/exposure/tests/test_unwrap.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/skimage/exposure/tests/test_unwrap.py b/skimage/exposure/tests/test_unwrap.py index 9798bba0..bb345b00 100644 --- a/skimage/exposure/tests/test_unwrap.py +++ b/skimage/exposure/tests/test_unwrap.py @@ -16,6 +16,7 @@ def test_unwrap2D(): s = np.round(phi_unwrapped[0,0]/(2*np.pi)) assert_array_almost_equal(phi, phi_unwrapped - s*2*np.pi) + def test_unwrap2D_masked(): x, y = np.ogrid[:8, :16] phi = 2*np.pi*(x*0.2 + y*0.1) @@ -30,6 +31,7 @@ def test_unwrap2D_masked(): s = np.round(phi_unwrapped_masked[0,0]/(2*np.pi)) assert_array_almost_equal(phi + 2*np.pi*s, phi_unwrapped_masked) + def test_unwrap3D(): x, y, z = np.ogrid[:8, :12, :4] phi = 2*np.pi*(x*0.2 + y*0.1 + z*0.05) @@ -39,6 +41,7 @@ def test_unwrap3D(): s = np.round(phi_unwrapped[0,0]/(2*np.pi)) assert_array_almost_equal(phi, phi_unwrapped - s*2*np.pi) + def test_unwrap3D_masked(): x, y, z = np.ogrid[:8, :12, :4] phi = 2*np.pi*(x*0.2 + y*0.1 + z*0.05) @@ -124,5 +127,6 @@ def unwrap_plots(): plt.draw() plt.show() + if __name__=="__main__": run_module_suite()