mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-18 12:40:14 +08:00
Merge pull request #1626 from JDWarner/fix_rank_test
Fix `test_pass_on_bitdepth` and format according to PEP8
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user