From b35215ec6b674c09aa2ab7a61c607b5338d43e6b Mon Sep 17 00:00:00 2001 From: "Josh Warner (Mac)" Date: Sat, 1 Aug 2015 00:28:35 -0500 Subject: [PATCH] TSTFIX: Missing assert statement and PEP8 --- skimage/filters/rank/tests/test_rank.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/skimage/filters/rank/tests/test_rank.py b/skimage/filters/rank/tests/test_rank.py index bb11a170..58e338f9 100644 --- a/skimage/filters/rank/tests/test_rank.py +++ b/skimage/filters/rank/tests/test_rank.py @@ -163,7 +163,7 @@ def test_bitdepth(): expected = [] with expected_warnings(expected): rank.mean_percentile(image=image, selem=elem, mask=mask, - out=out, shift_x=0, shift_y=0, p0=.1, p1=.9) + out=out, shift_x=0, shift_y=0, p0=.1, p1=.9) def test_population(): @@ -221,6 +221,8 @@ def test_pass_on_bitdepth(): elem = np.ones((3, 3), dtype=np.uint8) out = np.empty_like(image) mask = np.ones(image.shape, dtype=np.uint8) + with expected_warnings(["Bitdepth of"]): + rank.maximum(image=image, selem=elem, out=out, mask=mask) def test_inplace_output(): @@ -533,6 +535,7 @@ def test_16bit(): assert rank.maximum(image, selem)[10, 10] == value assert rank.mean(image, selem)[10, 10] == int(value / selem.size) + def test_bilateral(): image = np.zeros((21, 21), dtype=np.uint16) selem = np.ones((3, 3), dtype=np.uint8)