[SciPy-dev] Bug in sparse.py

Matthew Brett matthew.brett@gmail....
Sat Oct 27 11:36:39 CDT 2007


Hi,

I'm guessing that's my fault (mio) rather than Nathan's - I'll take a look.

Matthew

On 10/27/07, Nils Wagner <nwagner@iam.uni-stuttgart.de> wrote:
> 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
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-dev
>


More information about the Scipy-dev mailing list