Skip to content

Instantly share code, notes, and snippets.

@rgommers
Created March 26, 2017 03:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rgommers/b06981f89fb67eb6c1e643cab565419d to your computer and use it in GitHub Desktop.
Save rgommers/b06981f89fb67eb6c1e643cab565419d to your computer and use it in GitHub Desktop.
scikit-image test suite for edd5fe4 on 32-bit Python
With numpy 1.12.1 and scipy master.
$ python -c "import skimage; skimage.test()"
.................................................................................................................................................................................................................................../home/rgommers/Code/scikit-image/skimage/transform/_warps.py:84: UserWarning: The default mode, 'constant', will be changed to 'reflect' in skimage 0.15.
warn("The default mode, 'constant', will be changed to 'reflect' in "
......../home/rgommers/Code/scikit-image/skimage/feature/corner.py:373: RuntimeWarning: divide by zero encountered in divide
return (2.0 / np.pi) * np.arctan((l2 + l1) / (l2 - l1))
/home/rgommers/Code/scikit-image/skimage/feature/corner.py:373: RuntimeWarning: invalid value encountered in divide
return (2.0 / np.pi) * np.arctan((l2 + l1) / (l2 - l1))
.........................../home/rgommers/Code/scikit-image/skimage/feature/_hog.py:119: skimage_deprecation: Default value of `block_norm`==`L1` is deprecated and will be changed to `L2-Hys` in v0.15
'be changed to `L2-Hys` in v0.15', skimage_deprecation)
........../home/rgommers/Code/scipy/scipy/spatial/distance.py:147: DeprecationWarning: Got unexpected kwarg p. This will raise an error in a future version.
' in a future version.' % k, DeprecationWarning)
.....F........................................................................................Exception in thread Thread-10:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/rgommers/Code/scikit-image/skimage/filters/rank/tests/test_rank.py", line 86, in check_all
rank.entropy(self.image, selem))
File "/home/rgommers/.local/lib/python2.7/site-packages/numpy/testing/utils.py", line 361, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "/home/rgommers/.local/lib/python2.7/site-packages/numpy/testing/utils.py", line 871, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "/home/rgommers/.local/lib/python2.7/site-packages/numpy/testing/utils.py", line 796, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
(mismatch 1.28%)
x: array([[ 1.584963, 2. , 2. , 2. , 2. , 2. ,
2. , 2. , 2. , 2. , 2. , 2. ,
2. , 2. , 2. , 2. , 2. , 2. ,...
y: array([[ 1.584963, 2. , 2. , 2. , 2. , 2. ,
2. , 2. , 2. , 2. , 2. , 2. ,
2. , 2. , 2. , 2. , 2. , 2. ,...
F..............................................................................................................................................................................................................................SSSS.....F..F..SSSSS.................../home/rgommers/Code/scikit-image/skimage/util/dtype.py:122: UserWarning: Possible precision loss when converting from float64 to uint16
.format(dtypeobj_in, dtypeobj_out))
............/home/rgommers/Code/scikit-image/skimage/io/_io.py:132: UserWarning: /tmp/tmpik1HAa.png is a low contrast image
warn('%s is a low contrast image' % fname)
......../home/rgommers/Code/scikit-image/skimage/io/_io.py:132: UserWarning: test.png is a low contrast image
warn('%s is a low contrast image' % fname)
.......................SSSSS.................................................F.........../home/rgommers/Code/scikit-image/skimage/measure/_marching_cubes_classic.py:239: DeprecationWarning: `correct_mesh_orientation` is deprecated for removal as `marching_cubes_classic` now guarantees correct mesh orientation.
warn(DeprecationWarning("`correct_mesh_orientation` is deprecated for "
............../home/rgommers/Code/scikit-image/skimage/measure/profile.py:105: DeprecationWarning: object of type <type 'numpy.float64'> cannot be safely interpreted as an integer.
line_col = np.linspace(src_col, dst_col, length)
/home/rgommers/Code/scikit-image/skimage/measure/profile.py:106: DeprecationWarning: object of type <type 'numpy.float64'> cannot be safely interpreted as an integer.
line_row = np.linspace(src_row, dst_row, length)
.............................................................................................................................................................../home/rgommers/Code/scikit-image/skimage/morphology/misc.py:194: UserWarning: Any labeled images will be returned as a boolean array. Did you mean to use a boolean array?
"Did you mean to use a boolean array?", UserWarning)
................................................................................................................................................................................................................/home/rgommers/Code/scikit-image/skimage/transform/_warps.py:84: UserWarning: The default mode, 'constant', will be changed to 'reflect' in skimage 0.15.
warn("The default mode, 'constant', will be changed to 'reflect' in "
./home/rgommers/Code/scikit-image/skimage/transform/_warps.py:84: UserWarning: The default mode, 'constant', will be changed to 'reflect' in skimage 0.15.
warn("The default mode, 'constant', will be changed to 'reflect' in "
/home/rgommers/Code/scikit-image/skimage/transform/_warps.py:84: UserWarning: The default mode, 'constant', will be changed to 'reflect' in skimage 0.15.
warn("The default mode, 'constant', will be changed to 'reflect' in "
.........................................................................../home/rgommers/Code/scikit-image/skimage/transform/integral.py:86: UserWarning: The syntax 'integrate(ii, r0, c0, r1, c1)' is deprecated, and will be phased out in release 0.14. The new syntax is 'integrate(ii, (r0, c0), (r1, c1))'.
warn("The syntax 'integrate(ii, r0, c0, r1, c1)' is "
......................../home/rgommers/Code/scikit-image/skimage/transform/radon_transform.py:204: UserWarning: The default of `circle` in `skimage.transform.iradon` will change to `True` in version 0.15.
warn('The default of `circle` in `skimage.transform.iradon` '
....................................................................................SSSS........................................................................................................................................................../home/rgommers/Code/scikit-image/skimage/measure/profile.py:105: DeprecationWarning: object of type <type 'numpy.float64'> cannot be safely interpreted as an integer.
line_col = np.linspace(src_col, dst_col, length)
/home/rgommers/Code/scikit-image/skimage/measure/profile.py:106: DeprecationWarning: object of type <type 'numpy.float64'> cannot be safely interpreted as an integer.
line_row = np.linspace(src_row, dst_row, length)
../home/rgommers/Code/scikit-image/skimage/measure/profile.py:105: DeprecationWarning: object of type <type 'numpy.float64'> cannot be safely interpreted as an integer.
line_col = np.linspace(src_col, dst_col, length)
/home/rgommers/Code/scikit-image/skimage/measure/profile.py:106: DeprecationWarning: object of type <type 'numpy.float64'> cannot be safely interpreted as an integer.
line_row = np.linspace(src_row, dst_row, length)
..F............Object::connect: No such signal org::freedesktop::UPower::DeviceAdded(QDBusObjectPath)
Object::connect: No such signal org::freedesktop::UPower::DeviceRemoved(QDBusObjectPath)
............
======================================================================
FAIL: skimage.feature.tests.test_orb.test_descriptor_orb
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/rgommers/.local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/rgommers/Code/scikit-image/skimage/feature/tests/test_orb.py", line 100, in test_descriptor_orb
detector_extractor.descriptors[100:120, 10:20])
File "/home/rgommers/.local/lib/python2.7/site-packages/numpy/testing/utils.py", line 361, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "/home/rgommers/.local/lib/python2.7/site-packages/numpy/testing/utils.py", line 871, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "/home/rgommers/.local/lib/python2.7/site-packages/numpy/testing/utils.py", line 796, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
(mismatch 46.5%)
x: array([[False, True, True, True, False, True, False, True, False,
True],
[ True, True, True, False, False, True, False, False, True,...
y: array([[ True, False, False, False, False, False, False, False, True,
True],
[False, True, True, True, False, True, False, True, False,...
======================================================================
FAIL: skimage.filters.rank.tests.test_rank.TestRank.test_all
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/rgommers/.local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/rgommers/Code/scikit-image/skimage/filters/rank/tests/test_rank.py", line 95, in test_all
check_all()
File "/home/rgommers/Code/scikit-image/skimage/_shared/testing.py", line 235, in inner
result = func(*args, **kwargs)
File "/home/rgommers/Code/scikit-image/skimage/filters/rank/tests/test_rank.py", line 86, in check_all
rank.entropy(self.image, selem))
File "/home/rgommers/.local/lib/python2.7/site-packages/numpy/testing/utils.py", line 361, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "/home/rgommers/.local/lib/python2.7/site-packages/numpy/testing/utils.py", line 871, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "/home/rgommers/.local/lib/python2.7/site-packages/numpy/testing/utils.py", line 796, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
(mismatch 1.28%)
x: array([[ 1.584963, 2. , 2. , 2. , 2. , 2. ,
2. , 2. , 2. , 2. , 2. , 2. ,
2. , 2. , 2. , 2. , 2. , 2. ,...
y: array([[ 1.584963, 2. , 2. , 2. , 2. , 2. ,
2. , 2. , 2. , 2. , 2. , 2. ,
2. , 2. , 2. , 2. , 2. , 2. ,...
======================================================================
FAIL: skimage.io.tests.test_imageio.TestSave.test_imsave_roundtrip(array([[139, 182, 153, 138, 108, 164, 111, 227, 245, 97],
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/rgommers/.local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/rgommers/Code/scikit-image/skimage/io/tests/test_imageio.py", line 65, in roundtrip
assert_array_almost_equal((x * scaling).astype(np.int32), y)
File "/home/rgommers/.local/lib/python2.7/site-packages/numpy/testing/utils.py", line 979, in assert_array_almost_equal
precision=decimal)
File "/home/rgommers/.local/lib/python2.7/site-packages/numpy/testing/utils.py", line 747, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 6 decimals
(shapes (10, 10), (10, 10, 4) mismatch)
x: array([[139, 182, 153, 138, 108, 164, 111, 227, 245, 97],
[201, 134, 144, 236, 18, 22, 5, 212, 198, 221],
[249, 203, 117, 199, 30, 163, 36, 240, 133, 105],...
y: Image([[[139, 139, 139, 255],
[182, 182, 182, 255],
[153, 153, 153, 255],...
======================================================================
FAIL: skimage.io.tests.test_imageio.test_imageio_flatten
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/rgommers/.local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/rgommers/.local/lib/python2.7/site-packages/numpy/testing/decorators.py", line 147, in skipper_func
return f(*args, **kwargs)
File "/home/rgommers/Code/scikit-image/skimage/io/tests/test_imageio.py", line 38, in test_imageio_flatten
assert np.sctype2char(img.dtype) in np.typecodes['AllInteger']
AssertionError
======================================================================
FAIL: skimage.measure.tests.test_fit.test_ellipse_model_estimate_failers
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/rgommers/.local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/rgommers/Code/scikit-image/skimage/measure/tests/test_fit.py", line 229, in test_ellipse_model_estimate_failers
assert not model.estimate(np.array([[50, 80], [51, 81], [52, 80]]))
AssertionError
======================================================================
FAIL: skimage.viewer.tests.test_plugins.test_canny
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/rgommers/.local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/rgommers/.local/lib/python2.7/site-packages/numpy/testing/decorators.py", line 147, in skipper_func
return f(*args, **kwargs)
File "/home/rgommers/Code/scikit-image/skimage/viewer/tests/test_plugins.py", line 102, in test_canny
assert edges.sum() == 2852
AssertionError:
-------------------- >> begin captured logging << --------------------
PIL.PngImagePlugin: DEBUG: STREAM IHDR 16 13
PIL.PngImagePlugin: DEBUG: STREAM pHYs 41 9
PIL.PngImagePlugin: DEBUG: STREAM cHRM 62 32
PIL.PngImagePlugin: DEBUG: cHRM 62 32 (unknown)
PIL.PngImagePlugin: DEBUG: STREAM IDAT 106 114106
--------------------- >> end captured logging << ---------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment