mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-13 17:45:20 +08:00
ENH: Allow stand-alone execution of ctmf test suite.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import os.path
|
||||
|
||||
|
||||
import numpy as np
|
||||
from numpy.testing import *
|
||||
|
||||
@@ -95,3 +94,6 @@ class TestMedianFilter():
|
||||
assert (np.all(result[:14, :] == 1))
|
||||
# in zero coverage areas, the result should be the lowest valud in the valid area
|
||||
assert (np.all(result[15:, :] == np.min(img[mask])))
|
||||
|
||||
if __name__ == "__main__":
|
||||
run_module_suite()
|
||||
|
||||
Reference in New Issue
Block a user