From 2353113e4950629520d9c10335b68646978d6de3 Mon Sep 17 00:00:00 2001 From: Jonathan Helmus Date: Sat, 11 Jul 2015 17:34:28 -0500 Subject: [PATCH] TST: Smaller data array in 12-bit entropy test for speed --- skimage/filters/rank/tests/test_rank.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skimage/filters/rank/tests/test_rank.py b/skimage/filters/rank/tests/test_rank.py index 021f3d36..2db36aa6 100644 --- a/skimage/filters/rank/tests/test_rank.py +++ b/skimage/filters/rank/tests/test_rank.py @@ -486,8 +486,8 @@ def test_entropy(): # 12 bit per pixel selem = np.ones((64, 64), dtype=np.uint8) - data = np.tile( - np.reshape(np.arange(4096), (64, 64)), (2, 2)).astype(np.uint16) + data = np.zeros((65, 65), dtype=np.uint16) + data[:64, :64] = np.reshape(np.arange(4096), (64, 64)) with expected_warnings(['Bitdepth of 11']): assert(np.max(rank.entropy(data, selem)) == 12)