From 9f34c84f1a6d4599549db66583e97c37a60c6728 Mon Sep 17 00:00:00 2001 From: Andreas Mueller Date: Fri, 15 Jun 2012 21:15:29 +0200 Subject: [PATCH] COSMIT don't let pep8 make your matrices ugly. --- skimage/color/tests/test_colorconv.py | 30 +++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/skimage/color/tests/test_colorconv.py b/skimage/color/tests/test_colorconv.py index b053d470..84c921b8 100644 --- a/skimage/color/tests/test_colorconv.py +++ b/skimage/color/tests/test_colorconv.py @@ -77,14 +77,14 @@ class TestColorconv(TestCase): # RGB to XYZ def test_rgb2xyz_conversion(self): - gt = np.array([[[0.950456, 1., 1.088754], - [0.538003, 0.787329, 1.06942], - [0.592876, 0.28484, 0.969561], - [0.180423, 0.072169, 0.950227]], - [[0.770033, 0.927831, 0.138527], - [0.35758, 0.71516, 0.119193], - [0.412453, 0.212671, 0.019334], - [0., 0., 0.]]]) + gt = np.array([[[0.950456, 1. , 1.088754], + [0.538003, 0.787329, 1.06942 ], + [0.592876, 0.28484 , 0.969561], + [0.180423, 0.072169, 0.950227]], + [[0.770033, 0.927831, 0.138527], + [0.35758 , 0.71516 , 0.119193], + [0.412453, 0.212671, 0.019334], + [0. , 0. , 0. ]]]) assert_almost_equal(rgb2xyz(self.colbars_array), gt) # stop repeating the "raises" checks for all other functions that are @@ -103,14 +103,14 @@ class TestColorconv(TestCase): # RGB to RGB CIE def test_rgb2rgbcie_conversion(self): - gt = np.array([[[0.1488856, 0.18288098, 0.19277574], - [0.01163224, 0.16649536, 0.18948516], - [0.12259182, 0.03308008, 0.17298223], + gt = np.array([[[ 0.1488856 , 0.18288098, 0.19277574], + [ 0.01163224, 0.16649536, 0.18948516], + [ 0.12259182, 0.03308008, 0.17298223], [-0.01466154, 0.01669446, 0.16969164]], - [[0.16354714, 0.16618652, 0.0230841], - [0.02629378, 0.1498009, 0.01979351], - [0.13725336, 0.01638562, 0.00329059], - [0., 0., 0.]]]) + [[ 0.16354714, 0.16618652, 0.0230841 ], + [ 0.02629378, 0.1498009 , 0.01979351], + [ 0.13725336, 0.01638562, 0.00329059], + [ 0. , 0. , 0. ]]]) assert_almost_equal(rgb2rgbcie(self.colbars_array), gt) # RGB CIE to RGB