Re: [Numpy-discussion] convert csv file into recarray without pre-specifying dtypes and variable names

2007-07-17 Thread Vincent Nijs
I combined some of the very useful comments/code from Tim and Torgil and came-up with the attached program to read csv files and convert the data into a recarray. I couldn¹t use all of their suggestions because, frankly, I didn¹t understand all of them :) The program use variable names if provided

Re: [Numpy-discussion] Finalising documentation guidelines for NumPy

2007-07-17 Thread Stefan van der Walt
On Tue, Jul 17, 2007 at 01:58:24PM -0400, Alan G Isaac wrote: > On Tue, 17 Jul 2007, Stefan van der Walt apparently wrote: > >var1 : > >Description. > >breaks. This can be fixed either by omitting the colon after > >'var1' in the second case, or by slightly modifying epydoc's o

Re: [Numpy-discussion] Finalising documentation guidelines for NumPy

2007-07-17 Thread Alan G Isaac
On Tue, 17 Jul 2007, Stefan van der Walt apparently wrote: >var1 : >Description. >breaks. This can be fixed either by omitting the colon after >'var1' in the second case, or by slightly modifying epydoc's output. It breaks semantically too, no? (The colon is a separator, separ

[Numpy-discussion] Undefined symbol "fpsetsticky"

2007-07-17 Thread Luis N
I just built numpy from svn checkout: Python 2.4.3 (#2, Nov 8 2006, 23:56:15) [GCC 3.4.6 [FreeBSD] 20060305] on freebsd6 Type "help", "copyright", "credits" or "license" for more information. >>> import numpy Traceback (most recent call last): File "", line 1, in ? File "/usr/local/lib/python

Re: [Numpy-discussion] What is the different between nanmin and min ?

2007-07-17 Thread Timothy Hochberg
On 7/17/07, Keith Goodman <[EMAIL PROTECTED]> wrote: On 7/17/07, David Cournapeau <[EMAIL PROTECTED]> wrote: > I noticed that min and max already ignore Nan, which raises the > question: why are there nanmin and nanmax functions ? Using min and max when you have NaNs is dangerous. Here's an exa

Re: [Numpy-discussion] What is the different between nanmin and min ?

2007-07-17 Thread Keith Goodman
On 7/17/07, David Cournapeau <[EMAIL PROTECTED]> wrote: > I noticed that min and max already ignore Nan, which raises the > question: why are there nanmin and nanmax functions ? Using min and max when you have NaNs is dangerous. Here's an example: >> x = M.matrix([[ 1.0, 2.0, M.nan]]) >> x.min()

Re: [Numpy-discussion] What is the different between nanmin and min ?

2007-07-17 Thread David Cournapeau
Matthieu Brucher wrote: > Hi, > > I encountered cases where numpy.min() returned nan when the first and > the last values were nan. Didn't know of nanmin(), but I'll use them now ! Mmh, interesting. Indeed, a quick test shows that as long as the last value of a rank 1 array is not Nan, min ignore

[Numpy-discussion] Finalising documentation guidelines for NumPy

2007-07-17 Thread Stefan van der Walt
Hi all, In May this year, Charles Harris posted to this mailing list http://thread.gmane.org/gmane.comp.python.numeric.general/15381/focus=15407 discussing some shortcomings of the current NumPy (and hence SciPy) documentation standard http://projects.scipy.org/scipy/numpy/browser/trunk/numpy/d

Re: [Numpy-discussion] What is the different between nanmin and min ?

2007-07-17 Thread Matthieu Brucher
Hi, I encountered cases where numpy.min() returned nan when the first and the last values were nan. Didn't know of nanmin(), but I'll use them now ! Matthieu 2007/7/17, David Cournapeau <[EMAIL PROTECTED]>: Hi, I noticed that min and max already ignore Nan, which raises the question: why are

[Numpy-discussion] What is the different between nanmin and min ?

2007-07-17 Thread David Cournapeau
Hi, I noticed that min and max already ignore Nan, which raises the question: why are there nanmin and nanmax functions ? cheers, David ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discu