[SciPy-Dev] Errors with numpy-devel

Charles R Harris charlesr.harris at gmail.com
Sun Apr 13 01:42:08 EDT 2014


Hi All,

I get 75 errors and 3 failures when testing against current numpy on my
machine. Most of the errors are due to either the deprecation of the binary
'-' operator for booleans or to the deprecation of double ellipsis for
indexing, i.e., '(..., ...)' . The remainder look like two numerical
precision problems and one I can't immediately identify.

The main question I have is what is the best way to deal with the
deprecations?


FAIL: test_lsmr.TestLSMR.testBidiagonalA
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File
"/home/charris/.local/lib/python2.7/site-packages/scipy/sparse/linalg/isolve/tests/test_lsmr.py",
line 60, in testBidiagonalA
    self.assertCompatibleSystem(A,xtrue)
  File
"/home/charris/.local/lib/python2.7/site-packages/scipy/sparse/linalg/isolve/tests/test_lsmr.py",
line 40, in assertCompatibleSystem
    assert_almost_equal(norm(x - xtrue), 0, 6)
  File
"/home/charris/.local/lib/python2.7/site-packages/numpy/testing/utils.py",
line 486, in assert_almost_equal
    raise AssertionError(_build_err_msg())
AssertionError:
Arrays are not almost equal to 6 decimals
 ACTUAL: 6.048630163037888e-07
 DESIRED: 0

======================================================================
FAIL: test_qhull.TestUtilities.test_degenerate_barycentric_transforms
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File
"/home/charris/.local/lib/python2.7/site-packages/numpy/testing/decorators.py",
line 146, in skipper_func
    return f(*args, **kwargs)
  File
"/home/charris/.local/lib/python2.7/site-packages/scipy/spatial/tests/test_qhull.py",
line 296, in test_degenerate_barycentric_transforms
    assert_(bad_count < 20, bad_count)
  File
"/home/charris/.local/lib/python2.7/site-packages/numpy/testing/utils.py",
line 50, in assert_
    raise AssertionError(smsg)
AssertionError: 20

======================================================================
FAIL: test_trim (test_mstats_basic.TestTrimming)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/charris/.local/lib/python2.7/site-packages/scipy/stats/tests/test_mstats_basic.py",
line 270, in test_trim
    assert_equal(trimx._mask.ravel(),[1]*20+[0]*70+[1]*20)
  File
"/home/charris/.local/lib/python2.7/site-packages/numpy/ma/testutils.py",
line 123, in assert_equal
    return assert_array_equal(actual, desired, err_msg)
  File
"/home/charris/.local/lib/python2.7/site-packages/numpy/ma/testutils.py",
line 196, in assert_array_equal
    header='Arrays are not equal')
  File
"/home/charris/.local/lib/python2.7/site-packages/numpy/ma/testutils.py",
line 189, in assert_array_compare
    verbose=verbose, header=header)
  File
"/home/charris/.local/lib/python2.7/site-packages/numpy/testing/utils.py",
line 660, in assert_array_compare
    raise AssertionError(msg)
AssertionError:
Arrays are not equal

(mismatch 9.09090909091%)
 x: array([ True,  True,  True,  True,  True,  True,  True,  True,  True,
        True,  True,  True,  True,  True,  True,  True,  True,  True,
        True,  True, False, False, False, False, False, False, False,...
 y: array([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0,
0, 0,
       0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
       0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0,...

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20140412/b14b1578/attachment.html>


More information about the SciPy-Dev mailing list