mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-14 11:18:06 +08:00
fix import testing
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import numpy as np
|
||||
from numpy.testing import *
|
||||
|
||||
from skimage.transform import *
|
||||
from skimage.transform import frt2, ifrt2
|
||||
|
||||
|
||||
def test_frt():
|
||||
@@ -17,3 +16,8 @@ def test_frt():
|
||||
f = frt2(L)
|
||||
fi = ifrt2(f)
|
||||
assert len(np.nonzero(L - fi)[0]) == 0
|
||||
|
||||
if __name__ == '__main__':
|
||||
from numpy.testing import run_module_suite
|
||||
run_module_suite()
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import numpy as np
|
||||
from numpy.testing import *
|
||||
from numpy.testing import assert_equal
|
||||
|
||||
from skimage.transform import integral_image, integrate
|
||||
|
||||
@@ -43,4 +43,5 @@ def test_vectorized_integrate():
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
from numpy.testing import run_module_suite
|
||||
run_module_suite()
|
||||
|
||||
@@ -181,4 +181,5 @@ def test_radon_iradon_circle():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from numpy.testing import run_module_suite
|
||||
run_module_suite()
|
||||
|
||||
Reference in New Issue
Block a user