[SciPy-dev] tiny bug in read_array
Pietro Berkes
p.berkes at biologie.hu-berlin.de
Wed Oct 9 07:04:56 CDT 2002
Hi! I found a microscopic bug in the function read_array in scipy.io, which
causes a ValueError when loading array bigger than rowsize.
If I understood what's going on, the solution seems to be simple:
line 339 in scipy/io/array_import.py:
outarr[k].resize((outarr[k].shape[0] + rowsize,colsize))
should be:
outarr[k].resize((outarr[k].shape[0] + rowsize,colsize[k]))
Greetings,
Pietro.
More information about the Scipy-dev
mailing list