Re: [Numpy-discussion] scipy for centos4.4?

2007-05-04 Thread Fabian Braennstroem
Hi Neal, * Neal Becker <[EMAIL PROTECTED]> wrote: > Anyone know where to find usable rpms from scipy on centos4.4? I would like to see some more rpms too ... I am on scientific linux 4.4 :-) Greetings! Fabian ___ Numpy-discussion mailing list Numpy-

Re: [Numpy-discussion] matlab vs. python question

2007-05-04 Thread Bill Baxter
On 4/29/07, Benjamin Thyreau <[EMAIL PROTECTED]> wrote: > Le Samedi 28 Avril 2007 20:03, Simon Berube a écrit: > > (...) > > On the other hand, if you are more interested in small > > projects where speed of development is more important than long term > > sustainability of the code Matlab is prob

Re: [Numpy-discussion] Difference in the number of elements in a fromfile() between Windows and Linux

2007-05-04 Thread David M. Cooke
On Fri, May 04, 2007 at 05:43:00PM -0500, Robert Kern wrote: > Stefan van der Walt wrote: > > On Fri, May 04, 2007 at 09:44:02AM -0700, Christopher Barker wrote: > >> Matthieu Brucher wrote: > >>> Example of the first line of my data file : > >>> 0.0 inf 13.9040914426 14.7406669444 inf 4.4178324760

Re: [Numpy-discussion] Difference in the number of elements in a fromfile() between Windows and Linux

2007-05-04 Thread Christopher Barker
Robert Kern wrote: > "1.#INF" and "1.#QNAN" might be > accepted though since that's what ftoa() gives for those quantities. not in Python: float("1.#INF") gives a value error. That may or may not reflect what *scanf does, but I suspect it does. -Chris -- Christopher Barker, Ph.D. Oceanograp

Re: [Numpy-discussion] Difference in the number of elements in a fromfile() between Windows and Linux

2007-05-04 Thread David M. Cooke
On Sat, May 05, 2007 at 12:34:30AM +0200, Stefan van der Walt wrote: > On Fri, May 04, 2007 at 09:44:02AM -0700, Christopher Barker wrote: > > Matthieu Brucher wrote: > > > Example of the first line of my data file : > > > 0.0 inf 13.9040914426 14.7406669444 inf 4.41783247603 inf inf > > > 6.05071

Re: [Numpy-discussion] Difference in the number of elements in a fromfile() between Windows and Linux

2007-05-04 Thread Robert Kern
Stefan van der Walt wrote: > On Fri, May 04, 2007 at 09:44:02AM -0700, Christopher Barker wrote: >> Matthieu Brucher wrote: >>> Example of the first line of my data file : >>> 0.0 inf 13.9040914426 14.7406669444 inf 4.41783247603 inf inf >>> 6.05071515635 inf inf inf 15.6925185021 inf inf inf inf

Re: [Numpy-discussion] Difference in the number of elements in a fromfile() between Windows and Linux

2007-05-04 Thread Christopher Barker
Stefan van der Walt wrote: > It would be interesting to see how Inf and NaN (vs. inf and nan) are > interpreted under Windows. Neither works. I suspect there is no literal that works with the lib the python.org python is built with. (by the way, I'm testing with 2.4, but I think that's the same

Re: [Numpy-discussion] Difference in the number of elements in a fromfile() between Windows and Linux

2007-05-04 Thread Stefan van der Walt
On Fri, May 04, 2007 at 09:44:02AM -0700, Christopher Barker wrote: > Matthieu Brucher wrote: > > Example of the first line of my data file : > > 0.0 inf 13.9040914426 14.7406669444 inf 4.41783247603 inf inf > > 6.05071515635 inf inf inf 15.6925185021 inf inf inf inf inf inf inf > > I'm pretty su

Re: [Numpy-discussion] Difference in the number of elements in a fromfile() between Windows and Linux

2007-05-04 Thread Matthieu Brucher
In short, I don't know that this is a bug. It is a missing feature, but It may be hard to get someone to write the code to account for the limited fscanf() in fromfile(). That's what I was thinking :( Matthieu ___ Numpy-discussion mailing list Numpy

Re: [Numpy-discussion] Difference in the number of elements in a fromfile() between Windows and Linux

2007-05-04 Thread Christopher Barker
Matthieu Brucher wrote: > Example of the first line of my data file : > 0.0 inf 13.9040914426 14.7406669444 inf 4.41783247603 inf inf > 6.05071515635 inf inf inf 15.6925185021 inf inf inf inf inf inf inf I'm pretty sure fromfile() is using the standard C fscanf(). That means that whether in unde

Re: [Numpy-discussion] Difference in the number of elements in a fromfile() between Windows and Linux

2007-05-04 Thread Matthieu Brucher
Please file a ticket at http://projects.scipy.org/scipy/numpy/newticket along with a short code snippet to reproduce the problem. That way we won't forget about it. Cheers Stéfan Thank you, I didn't know if it was known or not, ... I'll post a ticket as soon as possible. Matthieu

Re: [Numpy-discussion] Difference in the number of elements in a fromfile() between Windows and Linux

2007-05-04 Thread Stefan van der Walt
Hi Matthieu On Fri, May 04, 2007 at 09:16:34AM +0200, Matthieu Brucher wrote: > I'm trying to test my code on several platforms, Windows and Linux, and I'm > using some data files that where saved with a tofile(sep=' ') under Linux. > Those files can be loaded without a problem under Linux, but un

Re: [Numpy-discussion] Difference in the number of elements in a fromfile() between Windows and Linux

2007-05-04 Thread Matthieu Brucher
tofile is using pickling, right ? If you dump to a text file, there may be a problem because of end of line ? I'm not using the binary form, so it's not pickling. Example of the first line of my data file : 0.0 inf 13.9040914426 14.7406669444 inf 4.41783247603 inf inf 6.05071515635inf inf inf

Re: [Numpy-discussion] Difference in the number of elements in a fromfile() between Windows and Linux

2007-05-04 Thread David Cournapeau
Matthieu Brucher wrote: > Hi, > > I'm trying to test my code on several platforms, Windows and Linux, > and I'm using some data files that where saved with a tofile(sep=' ') > under Linux. Those files can be loaded without a problem under Linux, > but under Windows with the latest numpy, these d

[Numpy-discussion] Difference in the number of elements in a fromfile() between Windows and Linux

2007-05-04 Thread Matthieu Brucher
Hi, I'm trying to test my code on several platforms, Windows and Linux, and I'm using some data files that where saved with a tofile(sep=' ') under Linux. Those files can be loaded without a problem under Linux, but under Windows with the latest numpy, these data cannot be loaded, some numbers ar