Skip to content

Commit

Permalink
TST: Smaller data array in 12-bit entropy test for speed
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhelmus committed Jul 11, 2015
1 parent 89a717e commit 2353113
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skimage/filters/rank/tests/test_rank.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 2353113

Please sign in to comment.