From 66caaa5b9fccd3daabff9fbcc42e50cfa0df41fa Mon Sep 17 00:00:00 2001 From: Vighnesh Birodkar Date: Sun, 7 Jun 2015 00:40:05 +0530 Subject: [PATCH] Corrected testing code --- skimage/transform/tests/test_seam_carving.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/transform/tests/test_seam_carving.py b/skimage/transform/tests/test_seam_carving.py index 40758648..57df75e0 100644 --- a/skimage/transform/tests/test_seam_carving.py +++ b/skimage/transform/tests/test_seam_carving.py @@ -5,7 +5,7 @@ from numpy import testing def energy(img): if(img.ndim == 3): - return np.ascontiguousarray(img[:, :, 0]) + img = np.ascontiguousarray(img[:, :, 0]) return (1 - img)