Skip to content

Commit

Permalink
TST: smaller arrays for bit comparison in test_rank for speed
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhelmus committed Jul 11, 2015
1 parent 2353113 commit ba65c35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skimage/filters/rank/tests/test_rank.py
Expand Up @@ -282,7 +282,7 @@ def test_compare_8bit_unsigned_vs_signed():
# of dynamic) should be identical

# Create signed int8 image that and convert it to uint8
image = img_as_ubyte(data.camera())
image = img_as_ubyte(data.camera())[::2, ::2]
image[image > 127] = 0
image_s = image.astype(np.int8)
with expected_warnings(['sign loss', 'precision loss']):
Expand All @@ -306,7 +306,7 @@ def test_compare_8bit_vs_16bit():
# filters applied on 8-bit image ore 16-bit image (having only real 8-bit
# of dynamic) should be identical

image8 = util.img_as_ubyte(data.camera())
image8 = util.img_as_ubyte(data.camera())[::2, ::2]
image16 = image8.astype(np.uint16)
assert_equal(image8, image16)

Expand Down

0 comments on commit ba65c35

Please sign in to comment.