mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-29 13:30:24 +08:00
Fix syntax error and missing | operator
This commit is contained in:
1 parent
d37ccca598
commit
2e0deb9595
2 files changed
+2
-2
No files matched your search
@@ -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