Re: [Numpy-discussion] Savetxt usage question

2009-05-17 Thread Gökhan SEVER
Thanks for the quick reply. Exact solution ! Gökhan On Sun, May 17, 2009 at 6:57 PM, Michael S. Gilbert < michael.s.gilb...@gmail.com> wrote: > fid = open( 'file' , 'w' ) > fid.write( 'header\n' ) > savetxt( fid , data ) > fid.close() > > On Sun, 17 May 2009 18:54:33 -0500 Gökhan SEVER wrote:

Re: [Numpy-discussion] Savetxt usage question

2009-05-17 Thread Michael S. Gilbert
fid = open( 'file' , 'w' ) fid.write( 'header\n' ) savetxt( fid , data ) fid.close() On Sun, 17 May 2009 18:54:33 -0500 Gökhan SEVER wrote: > Hello, > > Is there a way to write a header information to a text file using savetxt > command besides dumping arrays in the same file? > > In little det

[Numpy-discussion] Savetxt usage question

2009-05-17 Thread Gökhan SEVER
Hello, Is there a way to write a header information to a text file using savetxt command besides dumping arrays in the same file? In little detailed fashion: I have to write a few long column of arrays into a text file. While doing that I need to put some information regarding to the context of t

Re: [Numpy-discussion] linear algebra help

2009-05-17 Thread josef . pktd
On Sun, May 17, 2009 at 12:14 PM, Quilby wrote: > Right the dimensions I gave were wrong. > What do I need to do for m>=n (more rows than columns)?  Can I use the > same function? > > When I run the script written by Nils (thanks!) I get: >    from numpy.random import rand, seed > ImportError: No

Re: [Numpy-discussion] linear algebra help

2009-05-17 Thread Quilby
Right the dimensions I gave were wrong. What do I need to do for m>=n (more rows than columns)? Can I use the same function? When I run the script written by Nils (thanks!) I get: from numpy.random import rand, seed ImportError: No module named random But importing numpy works ok. What do I

Re: [Numpy-discussion] numpy slices limited to 32 bit values?

2009-05-17 Thread Charles R Harris
On Sun, May 17, 2009 at 8:51 AM, Charles R Harris wrote: > Hi Glen, > > On Sat, May 16, 2009 at 11:24 PM, Glenn Tarbox, PhD wrote: > >> Today at Sage Days we tried slices on a few large arrays (no mmap) and >> found that slicing breaks on arrays somewhere between 2.0e9 and 2.5e9 >> elements. The

Re: [Numpy-discussion] numpy slices limited to 32 bit values?

2009-05-17 Thread Charles R Harris
Hi Glen, On Sat, May 16, 2009 at 11:24 PM, Glenn Tarbox, PhD wrote: > Today at Sage Days we tried slices on a few large arrays (no mmap) and > found that slicing breaks on arrays somewhere between 2.0e9 and 2.5e9 > elements. The failure mode is the same, no error thrown, basically nothing > happ

Re: [Numpy-discussion] numpy slices limited to 32 bit values?

2009-05-17 Thread Pauli Virtanen
Hi, Sat, 16 May 2009 22:24:34 -0700, Glenn Tarbox, PhD wrote: > Today at Sage Days we tried slices on a few large arrays (no mmap) and > found that slicing breaks on arrays somewhere between 2.0e9 and 2.5e9 > elements. The failure mode is the same, no error thrown, basically > nothing happens > >