[MacPorts] #35020: py-scipy: work with updated SuiteSparse 4.0.0

MacPorts noreply at macports.org
Tue Jul 3 15:22:48 PDT 2012


#35020: py-scipy: work with updated SuiteSparse 4.0.0
------------------------------+---------------------------------------------
  Reporter:  zan@…            |       Owner:  ram@…           
      Type:  update           |      Status:  reopened        
  Priority:  Normal           |   Milestone:                  
 Component:  ports            |     Version:                  
Resolution:                   |    Keywords:  haspatch        
      Port:  py-scipy         |  
------------------------------+---------------------------------------------
Changes (by ram@…):

  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 I don't see that in the reason for the skipped tests, there are 10
 failures though:

 {{{
 ======================================================================
 FAIL: test_asum (test_blas.TestFBLAS1Simple)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/lib/blas/tests/test_blas.py", line 58, in test_asum
     assert_almost_equal(f([3,-4,5]),12)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 468, in assert_almost_equal
     raise AssertionError(msg)
 AssertionError:
 Arrays are not almost equal to 7 decimals
  ACTUAL: 0.0
  DESIRED: 12

 ======================================================================
 FAIL: test_dot (test_blas.TestFBLAS1Simple)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/lib/blas/tests/test_blas.py", line 67, in test_dot
     assert_almost_equal(f([3,-4,5],[2,5,1]),-9)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 468, in assert_almost_equal
     raise AssertionError(msg)
 AssertionError:
 Arrays are not almost equal to 7 decimals
  ACTUAL: 0.0
  DESIRED: -9

 ======================================================================
 FAIL: test_nrm2 (test_blas.TestFBLAS1Simple)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/lib/blas/tests/test_blas.py", line 78, in test_nrm2
     assert_almost_equal(f([3,-4,5]),math.sqrt(50))
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 468, in assert_almost_equal
     raise AssertionError(msg)
 AssertionError:
 Arrays are not almost equal to 7 decimals
  ACTUAL: 0.0
  DESIRED: 7.0710678118654755

 ======================================================================
 FAIL: test_basic.TestNorm.test_overflow
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/nose/case.py", line 197, in runTest
     self.test(*self.arg)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/linalg/tests/test_basic.py", line 581, in
 test_overflow
     assert_almost_equal(norm(a), a)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 452, in assert_almost_equal
     return assert_array_almost_equal(actual, desired, decimal, err_msg)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 800, in
 assert_array_almost_equal
     header=('Arrays are not almost equal to %d decimals' % decimal))
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 636, in assert_array_compare
     raise AssertionError(msg)
 AssertionError:
 Arrays are not almost equal to 7 decimals

 (mismatch 100.0%)
  x: array(-0.0)
  y: array([  1.00000002e+20], dtype=float32)

 ======================================================================
 FAIL: test_basic.TestNorm.test_stable
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/nose/case.py", line 197, in runTest
     self.test(*self.arg)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/linalg/tests/test_basic.py", line 586, in test_stable
     assert_almost_equal(norm(a) - 1e4, 0.5)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 468, in assert_almost_equal
     raise AssertionError(msg)
 AssertionError:
 Arrays are not almost equal to 7 decimals
  ACTUAL: -10000.0
  DESIRED: 0.5

 ======================================================================
 FAIL: test_basic.TestNorm.test_types
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/nose/case.py", line 197, in runTest
     self.test(*self.arg)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/linalg/tests/test_basic.py", line 568, in test_types
     assert_allclose(norm(x), np.sqrt(14), rtol=tol)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 1168, in assert_allclose
     verbose=verbose, header=header)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 636, in assert_array_compare
     raise AssertionError(msg)
 AssertionError:
 Not equal to tolerance rtol=2.38419e-06, atol=0

 (mismatch 100.0%)
  x: array(1.0842021724855044e-19)
  y: array(3.7416573867739413)

 ======================================================================
 FAIL: test_asum (test_blas.TestFBLAS1Simple)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/linalg/tests/test_blas.py", line 99, in test_asum
     assert_almost_equal(f([3,-4,5]),12)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 468, in assert_almost_equal
     raise AssertionError(msg)
 AssertionError:
 Arrays are not almost equal to 7 decimals
  ACTUAL: 0.0
  DESIRED: 12

 ======================================================================
 FAIL: test_dot (test_blas.TestFBLAS1Simple)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/linalg/tests/test_blas.py", line 109, in test_dot
     assert_almost_equal(f([3,-4,5],[2,5,1]),-9)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 468, in assert_almost_equal
     raise AssertionError(msg)
 AssertionError:
 Arrays are not almost equal to 7 decimals
  ACTUAL: 0.0
  DESIRED: -9

 ======================================================================
 FAIL: test_nrm2 (test_blas.TestFBLAS1Simple)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/linalg/tests/test_blas.py", line 127, in test_nrm2
     assert_almost_equal(f([3,-4,5]),math.sqrt(50))
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 468, in assert_almost_equal
     raise AssertionError(msg)
 AssertionError:
 Arrays are not almost equal to 7 decimals
  ACTUAL: 0.0
  DESIRED: 7.0710678118654755

 ======================================================================
 FAIL: test_iv_cephes_vs_amos_mass_test (test_basic.TestBessel)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/scipy/special/tests/test_basic.py", line 1656, in
 test_iv_cephes_vs_amos_mass_test
     assert_(dc[k] < 1e-9, (v[k], x[k], special.iv(v[k], x[k]),
 special.iv(v[k], x[k]+0j)))
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/numpy/testing/utils.py", line 34, in assert_
     raise AssertionError(msg)
 AssertionError: (189.2947429454936, 3.0238805556481037,
 4.089165443940765e-317, 0j)

 ----------------------------------------------------------------------
 Ran 5834 tests in 643.557s

 FAILED (KNOWNFAIL=14, SKIP=26, failures=10)
 }}}

 do you see these also?

-- 
Ticket URL: <https://trac.macports.org/ticket/35020#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list