[SciPy-user] Not sure what the problem is

Travis E. Oliphant oliphant.travis at ieee.org
Wed Apr 2 18:02:37 EST 2003


Nils Wagner wrote:

>Hi all,
>
>I tried to read an array from a file using io.read_array
>
>However, it failed.
>
>Traceback (most recent call last):
>  File "io.py", line 5, in ?
>    A = io.read_array(file,separator=' ',columns=None,
>lines=None,atype='d',linesep='\n')
>  File
>"/usr/local/lib/python2.1/site-packages/scipy/io/array_import.py", line
>369, in read_array
>    outarr[k][row] = vals[k]
>ValueError: matrices are not aligned for copy
>
>Any idea ?
>
>  
>

With your file and my version of scipy
 >>> scipy.__version__
'0.2.0_alpha_183.4047'

A = scipy.io.read_array('g.inp')

works just fine.

-Travis O.






More information about the SciPy-User mailing list