[Scipy-tickets] [SciPy] #1701: csgraph.shortest_path failures

SciPy Trac scipy-tickets@scipy....
Sat Jul 14 10:13:46 CDT 2012


#1701: csgraph.shortest_path failures
----------------------------------+-----------------------------------------
 Reporter:  rgommers              |       Owner:  jakevdp
     Type:  defect                |      Status:  new    
 Priority:  normal                |   Milestone:  0.11.0 
Component:  scipy.sparse.csgraph  |     Version:  0.10.0 
 Keywords:  shortest_path         |  
----------------------------------+-----------------------------------------
 Reported by several people against 0.11.0b1

 Scott Sinclair (Py3.2 on a 64bit Ubuntu 12.04 machine)
 {{{
 ======================================================================
 FAIL: test_shortest_path.test_undirected(array([[ 0.,  3.,  3.,  1.,  3.],
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/home/scott/.virtualenvs/scipy-py3/lib/python3.2/site-
 packages/nose/case.py",
 line 198, in runTest
     self.test(*self.arg)
   File "/home/scott/.virtualenvs/scipy-py3/lib/python3.2/site-
 packages/numpy/testing/utils.py",
 line 800, in assert_array_almost_equal
     header=('Arrays are not almost equal to %d decimals' % decimal))
   File "/home/scott/.virtualenvs/scipy-py3/lib/python3.2/site-
 packages/numpy/testing/utils.py",
 line 636, in assert_array_compare
     raise AssertionError(msg)
 AssertionError:
 Arrays are not almost equal to 6 decimals

 (mismatch 16.0%)
  x: array([[ 0.,  3.,  3.,  1.,  3.],
        [ 3.,  0.,  6.,  2.,  4.],
        [ 3.,  6.,  0.,  4.,  6.],...
  y: array([[ 0.,  3.,  3.,  1.,  2.],
        [ 3.,  0.,  6.,  2.,  4.],
        [ 3.,  6.,  0.,  4.,  5.],...
 }}}

 Christoph Gohlke (win-amd64-py3.2.)
 {{{
 ======================================================================
 FAIL: test_shortest_path.test_shortest_path_indices(array([[ 0.   ,  3.
    ,  3.   ,  1.   ,  2.858],
 ----------------------------------------------------------------------
 Traceback (most recent call last):
    File "X:\Python32\lib\site-packages\nose\case.py", line 198, in runTest
      self.test(*self.arg)
    File "X:\Python32\lib\site-packages\numpy\testing\utils.py", line
 800, in assert_array_almost_equal
      header=('Arrays are not almost equal to %d decimals' % decimal))
    File "X:\Python32\lib\site-packages\numpy\testing\utils.py", line
 636, in assert_array_compare
      raise AssertionError(msg)
 AssertionError:
 Arrays are not almost equal to 6 decimals

 (mismatch 15.0%)
   x: array([[ 0.        ,  3.        ,  3.        ,  1.        ,
 2.85772861],
         [ 3.        ,  0.        ,  6.        ,  2.        ,  4.        ],
         [ 3.        ,  6.        ,  0.        ,  4.        ,  5.85772861],
         [ 1.        ,  2.        ,  4.        ,  0.        ,
 2.85772861]])
   y: array([[ 0.,  3.,  3.,  1.,  2.],
         [ 3.,  0.,  6.,  2.,  4.],
         [ 3.,  6.,  0.,  4.,  5.],
         [ 1.,  2.,  4.,  0.,  2.]])
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1701>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list