From 0a6b72bfe4f47b48e883591e61e43b0065793ea3 Mon Sep 17 00:00:00 2001 From: Xavier Moles Lopez Date: Mon, 4 Mar 2013 12:15:35 +0100 Subject: [PATCH] FIX: Fixed test_hed_rgb_roundtrip. --- skimage/color/tests/test_colorconv.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/skimage/color/tests/test_colorconv.py b/skimage/color/tests/test_colorconv.py index fec5c20d..7e76ded3 100644 --- a/skimage/color/tests/test_colorconv.py +++ b/skimage/color/tests/test_colorconv.py @@ -124,15 +124,15 @@ class TestColorconv(TestCase): # RGB<->HED roundtrip def test_hed_rgb_roundtrip(self): - test = np.array([[[97, 105, 152], - [217, 187, 225], - [117, 107, 168]], - [[217, 187, 225], - [176, 135, 83], - [234, 144, 205]], - [[97, 105, 152], - [117, 107, 168], - [217, 187, 225]]], dtype=np.uint8) + img_rgb = np.array([[[97, 105, 152], + [217, 187, 225], + [117, 107, 168]], + [[217, 187, 225], + [176, 135, 83], + [234, 144, 205]], + [[97, 105, 152], + [117, 107, 168], + [217, 187, 225]]], dtype=np.uint8) assert_array_almost_equal(hed2rgb(rgb2hed(img_rgb)), img_rgb) # RGB to RGB CIE