Re: [Numpy-discussion] fromfile() for reading text (one more time!)

2010-01-05 Thread Paul Ivanov
Christopher Barker, on 2010-01-04 17:05, wrote: Hi folks, I'm taking a look once again at fromfile() for reading text files. I often have the need to read a LOT of numbers form a text file, and it can actually be pretty darn slow do i the normal python way: for line in file: data =

[Numpy-discussion] 1.4.0 installer fails on OSX 10.6.2

2010-01-05 Thread neil weisenfeld
Hi all, I'm having an odd problem with the package installer for numpy 1.4.0. It complains: numpy 1.4.0 can't be installed on this disk. numpy requires System Python 2.6 to install. I'm running a stock system with a stock python, so I'm not sure why the test is failing. Any ideas how to debug

[Numpy-discussion] finishing ticket #1035

2010-01-05 Thread Charles R Harris
Hi All, I'm looking at ticket #1025http://projects.scipy.org/numpy/ticket/1035#comment:4with an eye to bringing it to completion but there some issues that need discussion. Currently there are three ways in which nans can be compared: maximum/minimum, fmax/fmin, or the new sort order. The

Re: [Numpy-discussion] fromfile() for reading text (one more time!)

2010-01-05 Thread Christopher Barker
josef.p...@gmail.com wrote: On Mon, Jan 4, 2010 at 10:39 PM, a...@ajackson.org wrote: I rather like the R command(s) for reading text files Aren't the newly improved numpy.genfromtxt() ... and friends indented to handle all this Yes, they are, and they are great, but not really all

Re: [Numpy-discussion] fromfile() for reading text (one more time!)

2010-01-05 Thread Pierre GM
On Jan 5, 2010, at 12:32 PM, Christopher Barker wrote: josef.p...@gmail.com wrote: On Mon, Jan 4, 2010 at 10:39 PM, a...@ajackson.org wrote: I rather like the R command(s) for reading text files Aren't the newly improved numpy.genfromtxt() ... and friends indented to handle all

Re: [Numpy-discussion] fromfile() for reading text (one more time!)

2010-01-05 Thread Pauli Virtanen
ma, 2010-01-04 kello 17:05 -0800, Christopher Barker kirjoitti: [clip] I also notice that it supports separators of arbitrary length, which I wonder how useful that is. But it also does odd things with spaces embedded in the separator: , $ # matches all of: ,$# , $# ,$ # Is it worth

Re: [Numpy-discussion] 1.4.0 installer fails on OSX 10.6.2

2010-01-05 Thread Eric Firing
neil weisenfeld wrote: Hi all, I'm having an odd problem with the package installer for numpy 1.4.0. It complains: numpy 1.4.0 can't be installed on this disk. numpy requires System Python 2.6 to install. I think the problem is that the message is misleading; it should be saying you

Re: [Numpy-discussion] 1.4.0 installer fails on OSX 10.6.2

2010-01-05 Thread Pierre GM
On Jan 5, 2010, at 3:45 PM, Eric Firing wrote: neil weisenfeld wrote: Hi all, I'm having an odd problem with the package installer for numpy 1.4.0. It complains: numpy 1.4.0 can't be installed on this disk. numpy requires System Python 2.6 to install. I think the problem is that the

[Numpy-discussion] extracting data from ODF files

2010-01-05 Thread Manuel Wittchen
Hi, is there a (simple) solution to extract data from OpenDocument files (espacially OpenOffice.org Calc files) into a Numpy Array? At the moment I copy the colums from OO.org Calc manually into a tab-separatet Plaintext file which is quite annoying. Regards, Manuel Wittchen

Re: [Numpy-discussion] extracting data from ODF files

2010-01-05 Thread Emmanuelle Gouillart
Hi Manuel, you may save your odf file as a csv (comma separated value) file with OpenOffice, then use np.loadtxt, specifying the 'delimiter' keyword: myarray = np.loadtxt('myfile.csv', delimiter=',') Cheers, Emmanuelle On Tue, Jan 05, 2010 at 10:14:54PM +0100, Manuel Wittchen wrote: Hi, is

[Numpy-discussion] Lots of 32bits specific errors

2010-01-05 Thread Xavier Gnata
Hi, I have compiled numpy 1.5.0.dev8039 both on a 32 and a 64bits ubuntu machine. On the 64bits one, everything is fine: numpy.test get a perfect score: nose.result.TextTestResult run=2504 errors=0 failures=0 On the 32bits ubuntu, the story is not that nice: nose.result.TextTestResult run=2504

Re: [Numpy-discussion] 1.4.0 installer fails on OSX 10.6.2

2010-01-05 Thread Eric Firing
Pierre GM wrote: On Jan 5, 2010, at 3:45 PM, Eric Firing wrote: neil weisenfeld wrote: Hi all, I'm having an odd problem with the package installer for numpy 1.4.0. It complains: numpy 1.4.0 can't be installed on this disk. numpy requires System Python 2.6 to install. I think the problem

Re: [Numpy-discussion] Lots of 32bits specific errors

2010-01-05 Thread David Cournapeau
On Wed, Jan 6, 2010 at 6:48 AM, Xavier Gnata xavier.gn...@gmail.com wrote: Hi, I have compiled numpy 1.5.0.dev8039 both on a 32 and a 64bits ubuntu machine. On the 64bits one, everything is fine: numpy.test get a perfect score: nose.result.TextTestResult run=2504 errors=0 failures=0 On

Re: [Numpy-discussion] 1.4.0 installer fails on OSX 10.6.2

2010-01-05 Thread Christopher Barker
Pierre GM wrote: Ah OK, my bad. Now, why should it be that different ? Why rely on a second Python to install numpy from a dmg? OS-X has a way of hard coding paths, so a given installer is designed to go in one place, and one place only. The python.org python is the best one to support --

Re: [Numpy-discussion] 1.4.0 installer fails on OSX 10.6.2

2010-01-05 Thread David Warde-Farley
On 5-Jan-10, at 6:01 PM, Christopher Barker wrote: The python.org python is the best one to support -- Apple has never upgraded a python, has often shipped a broken version, and has provided different versions with each OS-X version. If we support the python.org python for OS-X 10.4,

Re: [Numpy-discussion] Lots of 32bits specific errors

2010-01-05 Thread Xavier Gnata
On Wed, Jan 6, 2010 at 6:48 AM, Xavier Gnata xavier.gn...@gmail.com wrote: Hi, I have compiled numpy 1.5.0.dev8039 both on a 32 and a 64bits ubuntu machine. On the 64bits one, everything is fine: numpy.test get a perfect score: nose.result.TextTestResult run=2504 errors=0 failures=0

Re: [Numpy-discussion] 1.4.0 installer fails on OSX 10.6.2

2010-01-05 Thread Pierre GM
On Jan 5, 2010, at 6:22 PM, David Warde-Farley wrote: On 5-Jan-10, at 6:01 PM, Christopher Barker wrote: The python.org python is the best one to support -- Apple has never upgraded a python, has often shipped a broken version, and has provided different versions with each OS-X version.

Re: [Numpy-discussion] 1.4.0 installer fails on OSX 10.6.2

2010-01-05 Thread Christopher Barker
David Warde-Farley wrote: AFAIK, the System Python in 10.6 is 64-bit capable (but not in the same way as Ron Oussoren's 4-way universal build script does it). right -- I'm not sure if it's useful, though, I don't' think there is a 64 bit interpreter, for instance. But maybe that was the

Re: [Numpy-discussion] 1.4.0 installer fails on OSX 10.6.2

2010-01-05 Thread Christopher Barker
Christopher Barker wrote: OK -- what about simply punting and doing two builds: one 32 bit, and one 64 bit. I wonder if we need 64bit PPC at all? I know I'm running 64 bit hardware, but never ran a 64 bit OS on it -- I wonder if anyone is? Oh, I think this approach may be completely

Re: [Numpy-discussion] Lots of 32bits specific errors

2010-01-05 Thread David Cournapeau
On Wed, Jan 6, 2010 at 8:17 AM, Xavier Gnata xavier.gn...@gmail.com wrote: On Wed, Jan 6, 2010 at 6:48 AM, Xavier Gnata xavier.gn...@gmail.com wrote: Hi, I have compiled numpy 1.5.0.dev8039 both on a 32 and a 64bits ubuntu machine. On the 64bits one, everything is fine: numpy.test get a

Re: [Numpy-discussion] 1.4.0 installer fails on OSX 10.6.2

2010-01-05 Thread David Cournapeau
On Wed, Jan 6, 2010 at 8:22 AM, David Warde-Farley d...@cs.toronto.edu wrote: On 5-Jan-10, at 6:01 PM, Christopher Barker wrote: As the 2.6 series is binary compatible, you can build a single installer that will work with both I don't think that's true. 2.6.x are compatible with each other

Re: [Numpy-discussion] 1.4.0 installer fails on OSX 10.6.2

2010-01-05 Thread David Cournapeau
On Wed, Jan 6, 2010 at 9:18 AM, Christopher Barker chris.bar...@noaa.gov wrote: If distutils/setuptools could identify the python version properly, then  binary eggs and easy-install could be a solution -- but that's a mess, too. It would not solve the problem, really. Two same versions of

Re: [Numpy-discussion] performance matrix multiplication vs. matlab

2010-01-05 Thread Xue (Sue) Yang
Hi, I followed what I collected about installation of numpy with lapack and atlas and installed numpy on our desktop with RHEL4 and 4 cores. uname -a Linux curie.physics.usyd.edu.au 2.6.9-89.0.15.ELsmp #1 SMP Sat Oct 10 05:59:16 EDT 2009 i686 i686 i386 GNU/Linux I successfully installed

Re: [Numpy-discussion] performance matrix multiplication vs. matlab

2010-01-05 Thread David Cournapeau
Xue (Sue) Yang wrote: Hi, I followed what I collected about installation of numpy with lapack and atlas and installed numpy on our desktop with RHEL4 and 4 cores. uname -a Linux curie.physics.usyd.edu.au 2.6.9-89.0.15.ELsmp #1 SMP Sat Oct 10 05:59:16 EDT 2009 i686 i686 i386 GNU/Linux

Re: [Numpy-discussion] extracting data from ODF files

2010-01-05 Thread Nadav Horesh
There is a possibility to export the data to excel format and use xlrd or similar package to read it. Nadav -Original Message- From: numpy-discussion-boun...@scipy.org on behalf of Manuel Wittchen Sent: Tue 05-Jan-10 23:14 To: Discussion of Numerical Python Subject: