[SciPy-user] Bug in io.mmread
Nils Wagner
nwagner at mecha.uni-stuttgart.de
Mon Nov 8 10:03:08 EST 2004
Hi all,
I have some trouble when using mmread; k0.mtx is large and sparse matrix.
%%MatrixMarket matrix coordinate real general
% Generated 08-Nov-2004
67986 67986 4222171
...
Traceback (most recent call last):
File "test1.py", line 4, in ?
ma = io.mmread('k0.mtx')
File "/usr/lib/python2.3/site-packages/scipy/io/mmio.py", line 208, in
mmread
a = coo_matrix(data,(row,col),M=rows,N=cols)
File "/usr/lib/python2.3/site-packages/scipy/sparse/Sparse.py", line
1366, in __init__
self._check()
File "/usr/lib/python2.3/site-packages/scipy/sparse/Sparse.py", line
1376, in _check
self.ftype = _transtabl[self.typecode]
KeyError: 'O'
>>>
Any pointer would be appreciated.
Nils
More information about the SciPy-User
mailing list