From: Stephen W. <ste...@cs...> - 2005-01-31 19:38:15
|
Humufr wrote: > I agree with you but in the load function documentation I can read this: > > x,y = load('test.dat') # data in two columns The documentation for load is correct. Consider A=load('test.dat') If 'test.dat' has 17 rows and 2 columns, A.shape will be (17,2), "print A" will print an array with 17 rows and 2 columns, and so on. But x,y=A will not work, because tuple unpacking of numarray arrays goes by rows, not by columns. |