From 1251f77d6aadabb91dff887fd2c57622616b4123 Mon Sep 17 00:00:00 2001 From: Andreas Mueller Date: Fri, 22 Jun 2012 23:51:57 +0200 Subject: [PATCH] COSMIT minor pep8 --- skimage/io/tests/test_colormixer.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/skimage/io/tests/test_colormixer.py b/skimage/io/tests/test_colormixer.py index f83a34d5..b9f362a2 100644 --- a/skimage/io/tests/test_colormixer.py +++ b/skimage/io/tests/test_colormixer.py @@ -3,6 +3,7 @@ import numpy as np import skimage.io._plugins._colormixer as cm + class ColorMixerTest(object): def setup(self): self.state = np.ones((18, 33, 3), dtype=np.uint8) * 200 @@ -91,7 +92,8 @@ class TestColorMixer(object): def test_gamma(self): gamma = 1.5 cm.gamma(self.img, self.state, gamma) - img = np.asarray(((self.state/255.)**(1/gamma))*255, dtype='uint8') + img = np.asarray(((self.state / 255.)**(1 / gamma)) * 255, + dtype='uint8') assert_array_almost_equal(img, self.img) def test_rgb_2_hsv(self): @@ -112,7 +114,6 @@ class TestColorMixer(object): assert_almost_equal(np.array([g]), np.array([0])) assert_almost_equal(np.array([b]), np.array([0])) - def test_hsv_add(self): cm.hsv_add(self.img, self.state, 360, 0, 0) assert_almost_equal(self.img, self.state) @@ -123,7 +124,7 @@ class TestColorMixer(object): def test_hsv_add_clip_pos(self): cm.hsv_add(self.img, self.state, 0, 0, 1) - assert_equal(self.img, np.ones_like(self.state)*255) + assert_equal(self.img, np.ones_like(self.state) * 255) def test_hsv_mul(self): cm.hsv_multiply(self.img, self.state, 360, 1, 1)