Hi Warren & Pierre,

> Notice that your array is actually a 2D structured array with shape (n, 1).  
> Try reshaping it to (n,) or apply np.squeeze before calling savetxt.

Thanks to both of you, I made huge progress to understand how numpy arrays 
work. I use PyDev under Eclipse, and the debugger showed me that the vstack 
function generated a 2D array. So I used append instead, and my script now 
works!

Cheers
JB
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to