[SciPy-user] scipy.io.write_array and the precision

Travis Oliphant oliphant.travis at ieee.org
Thu Apr 6 04:55:49 CDT 2006

jaonary at free.fr wrote:
> Hi all,
> I'm trying to write an ascii output of my computation. To do this I'm planing to
> use the package io of scipy. 

The write_array function is pretty simple and can be adjusted as you like.

But, if you are using  NumPy (the new one...), then you can also write 
ascii data to a file using the tofile method

arr.tofile('myfile.txt',sep=' ')

will do it...


More information about the SciPy-user mailing list