Skip to content

Commit

Permalink
TSTFIX: Missing assert statement and PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Warner (Mac) committed Aug 1, 2015
1 parent a1429f2 commit b35215e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion skimage/filters/rank/tests/test_rank.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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():
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b35215e

Please sign in to comment.