[Numpy-discussion] Writing/reading a numeric array to a file

Joris De Ridder joris at ster.kuleuven.be
Thu Nov 10 03:58:00 CST 2005


On Wednesday 09 November 2005 20:21, Travis Oliphant wrote:

> SciPy core arrays have tofile methods and a fromfile function.  They are 
> raw reading and writing --- nothing fancy.   You need to use Pickling if 
> you want to recognize endian-ness among platforms.  What is your 
> opposition to Pickling?
> 
> I think you should take a look at PyTables for more elegant solutions.


The read_array and write_array of the old scipy.io are very handy.
Any chance that they will be incorporated somehow in the new scipy?
PyTables is powerful but perhaps a bit overkill if you just want to 
read or write a few columns in ascii format.

Joris

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm





More information about the Numpy-discussion mailing list