Re: [Numpy-discussion] Appending a numpy array to existing text file

2007-11-28 Thread Andy Cheesman
It does indeed work
Thanks for the help

Andy

LB wrote:
 If you just want to add your matrix to an existing ascii file, you can
 open this file in append mode and give the file handle to
 numpy.savetxt :
 
 f_handle = file('my_file.dat', 'a')
 savetxt(f_handle, my_matrix)
 f_handle.close()
 
 HTH
 
 --
 LB
 ___
 Numpy-discussion mailing list
 Numpy-discussion@scipy.org
 http://projects.scipy.org/mailman/listinfo/numpy-discussion
 
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Appending a numpy array to existing text file

2007-11-27 Thread LB
If you just want to add your matrix to an existing ascii file, you can
open this file in append mode and give the file handle to
numpy.savetxt :

f_handle = file('my_file.dat', 'a')
savetxt(f_handle, my_matrix)
f_handle.close()

HTH

--
LB
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion