[SciPy-user] Negative entries in matrices get lost by using io.read_array

Nils Wagner nwagner at mecha.uni-stuttgart.de
Mon May 12 08:42:08 EDT 2003


Hi all,

I have a problem with io:read_array

Negative entries in matrices get lost by using io.read_array.
This is llustrated by means of a short test program

ioread.py.

Any idea ?

 Nils
-------------- next part --------------
 1.0 2.0 3.0 -1.0
 2.0 2.0 3.0  0.0
 3.0 4.0 4.0  1.0
 4.0 5.0 6.0  7.0
-------------- next part --------------
from scipy import *
file = open("test.mat")
a = io.read_array(file)
print a


More information about the SciPy-User mailing list