[SciPy-dev] tiny bug in read_array
Travis Oliphant
oliphant at ee.byu.edu
Wed Oct 9 13:15:33 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]))
>
Thanks. I do believe you are right.
-Travis
More information about the Scipy-dev
mailing list