[SciPy-dev] Bug in sparse.py
Nils Wagner
nwagner@iam.uni-stuttgart...
Sat Oct 27 11:13:03 CDT 2007
Nathan,
scipy.test(1) reveals a bug in sparse.py (recent svn)
======================================================================
ERROR: check loadmat case sparse
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/local/lib64/python2.5/site-packages/scipy/io/tests/test_mio.py",
line 84, in cc
self._check_case(name, files, expected)
File
"/usr/local/lib64/python2.5/site-packages/scipy/io/tests/test_mio.py",
line 74, in _check_case
matdict = loadmat(file_name)
File
"/usr/local/lib64/python2.5/site-packages/scipy/io/mio.py",
line 96, in loadmat
matfile_dict = MR.get_variables()
File
"/usr/local/lib64/python2.5/site-packages/scipy/io/miobase.py",
line 277, in get_variables
res = getter.get_array()
File
"/usr/local/lib64/python2.5/site-packages/scipy/io/miobase.py",
line 317, in get_array
arr = self.get_raw_array()
File
"/usr/local/lib64/python2.5/site-packages/scipy/io/mio4.py",
line 174, in get_raw_array
return scipy.sparse.csc_matrix((vals,ij), dims)
File
"/usr/local/lib64/python2.5/site-packages/scipy/sparse/sparse.py",
line 937, in __init__
dtype=self.dtype).tocsc()
File
"/usr/local/lib64/python2.5/site-packages/scipy/sparse/sparse.py",
line 2264, in __init__
self._check()
File
"/usr/local/lib64/python2.5/site-packages/scipy/sparse/sparse.py",
line 2277, in _check
raise TypeError,'row array has invalid dtype'
TypeError: row array has invalid dtype
Nils
More information about the Scipy-dev
mailing list