Re: [Numpy-discussion] How can Import DATA from a Fortran file

2011-05-20 Thread Aradenatorix Veckhom Vacelaevus
Hi again: Thanks Olivier, I understood you only wanna show me a way for solve my problem. I'm reading about the options in python for files and stuff. I think is better to write a code for solve our problems, but I found very useful the genfromtxt tool so I want to use it if I can't I have to pars

Re: [Numpy-discussion] How can Import DATA from a Fortran file

2011-05-20 Thread Bruce Southey
On Fri, May 20, 2011 at 8:22 AM, Olivier Delalleau wrote: > StringIO(data_file_name) will not read your file, it will just allow you to > read the string data_file_name. You can probably just use > open(data_file_name) (and yes,you'll probably need to open it for each call > to genfromtxt). > Sorr

Re: [Numpy-discussion] How can Import DATA from a Fortran file

2011-05-20 Thread Olivier Delalleau
StringIO(data_file_name) will not read your file, it will just allow you to read the string data_file_name. You can probably just use open(data_file_name) (and yes,you'll probably need to open it for each call to genfromtxt). Sorry my script didn't work, I definitely didn't expect it to work right