[SciPy-dev] svn scipy.sparse

Nils Wagner nwagner@iam.uni-stuttgart...
Fri Apr 25 11:53:59 CDT 2008


Hi Nathan,

I found some new errors in scipy svn

======================================================================
ERROR: test_matvec (test_base.TestDOK)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/sparse/tests/test_base.py", 
line 257, in test_matvec
     assert_array_almost_equal(M * col, M.todense() * col)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/sparse/dok.py", 
line 361, in __mul__
     return self.dot(other)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/sparse/base.py", 
line 376, in dot
     return self.matvec(other)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/sparse/dok.py", 
line 492, in matvec
     new = array(new)
ValueError: setting an array element with a sequence.
  
======================================================================
ERROR: Does the matrix's .mean(axis=...) method work?
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/sparse/tests/test_base.py", 
line 125, in test_mean
     assert_array_equal(self.dat.mean(), 
self.datsp.mean())
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/sparse/base.py", 
line 474, in mean
     return self.sum(None) * 1.0 / 
(self.shape[0]*self.shape[1])
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/sparse/base.py", 
line 457, in sum
     return ( self * asmatrix(ones((n, 1), 
dtype=self.dtype)) ).sum()
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/sparse/dok.py", 
line 361, in __mul__
     return self.dot(other)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/sparse/base.py", 
line 376, in dot
     return self.matvec(other)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/sparse/dok.py", 
line 492, in matvec
     new = array(new)
ValueError: setting an array element with a sequence.

======================================================================
ERROR: test_rmatvec (test_base.TestDOK)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/sparse/tests/test_base.py", 
line 252, in test_rmatvec
     assert_array_almost_equal(row*M, row*M.todense())
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/sparse/dok.py", 
line 387, in __rmul__
     return self.transpose().dot(tr).transpose()
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/sparse/base.py", 
line 376, in dot
     return self.matvec(other)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/sparse/dok.py", 
line 492, in matvec
     new = array(new)
ValueError: setting an array element with a sequence.

======================================================================
ERROR: Does the matrix's .sum(axis=...) method work?
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/sparse/tests/test_base.py", 
line 117, in test_sum
     assert_array_equal(self.dat.sum(), self.datsp.sum())
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/sparse/base.py", 
line 457, in sum
     return ( self * asmatrix(ones((n, 1), 
dtype=self.dtype)) ).sum()
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/sparse/dok.py", 
line 361, in __mul__
     return self.dot(other)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/sparse/base.py", 
line 376, in dot
     return self.matvec(other)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/sparse/dok.py", 
line 492, in matvec
     new = array(new)
ValueError: setting an array element with a sequence.


Nils


More information about the Scipy-dev mailing list