mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-08 14:24:11 +08:00
Fix syntax error and missing | operator
This commit is contained in:
@@ -211,7 +211,7 @@ def test_adapthist_grayscale():
|
||||
img = skimage.img_as_float(data.astronaut())
|
||||
img = rgb2gray(img)
|
||||
img = np.dstack((img, img, img))
|
||||
with expected_warnings(['precision loss|non-contiguous input]):
|
||||
with expected_warnings(['precision loss|non-contiguous input']):
|
||||
adapted = exposure.equalize_adapthist(img, 10, 9, clip_limit=0.01,
|
||||
nbins=128)
|
||||
assert_almost_equal = np.testing.assert_almost_equal
|
||||
|
||||
@@ -175,7 +175,7 @@ def test_3d_fallback_white_tophat():
|
||||
with expected_warnings(['operator.*deprecated|\A\Z']):
|
||||
new_image = grey.white_tophat(image)
|
||||
footprint = ndimage.generate_binary_structure(3,1)
|
||||
with expected_warnings(['operator.*deprecated\A\Z']):
|
||||
with expected_warnings(['operator.*deprecated|\A\Z']):
|
||||
image_expected = ndimage.white_tophat(image,footprint=footprint)
|
||||
testing.assert_array_equal(new_image, image_expected)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user