[SciPy-user] Bug in io.mmread
nwagner at mecha.uni-stuttgart.de
Mon Nov 8 13:30:39 CST 2004
On Mon, 8 Nov 2004 12:07:00 -0600 (CST)
Pearu Peterson <pearu at scipy.org> wrote:
> On Mon, 8 Nov 2004, Nils Wagner wrote:
>> 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')
>> a = coo_matrix(data,(row,col),M=rows,N=cols)
>> in __init__
>> in _check
>> self.ftype = _transtabl[self.typecode]
>> KeyError: 'O'
>> Any pointer would be appreciated.
> I suspect that k0.mtx contains only integer values (some
>maybe larger that sys.maxint) and so asarray(data)
>returns array object with typecode=='O'. Could you send
>the file k0.mtx to me (don't send large files to the
>list) and I'll see if I can workaround this problem.
Thank you for your reply. Actually, the file
is very large (60 MB). How should I send it to you ?
> SciPy-user mailing list
> SciPy-user at scipy.net
More information about the SciPy-user