Re: [Numpy-discussion] nan, warning and error modes

2007-02-26 Thread David Cournapeau
Robert Kern wrote: > David Cournapeau wrote: > >> Hi, >> >> I am developing some numpy code, which sometimes fail because of >> nan. This is likely to be due to some bad coding on my side, and as such >> any NaN is a bug for this particular piece of code. >> Is there a way to get a war

Re: [Numpy-discussion] nan, warning and error modes

2007-02-26 Thread Robert Kern
On 2/27/07, Robert Kern <[EMAIL PROTECTED]> wrote: > David Cournapeau wrote: > > Hi, > > > > I am developing some numpy code, which sometimes fail because of > > nan. This is likely to be due to some bad coding on my side, and as such > > any NaN is a bug for this particular piece of code. > >

Re: [Numpy-discussion] nan, warning and error modes

2007-02-26 Thread Robert Kern
David Cournapeau wrote: > Hi, > > I am developing some numpy code, which sometimes fail because of > nan. This is likely to be due to some bad coding on my side, and as such > any NaN is a bug for this particular piece of code. > Is there a way to get a warning when the first Nan is dete

[Numpy-discussion] nan, warning and error modes

2007-02-26 Thread David Cournapeau
Hi, I am developing some numpy code, which sometimes fail because of nan. This is likely to be due to some bad coding on my side, and as such any NaN is a bug for this particular piece of code. Is there a way to get a warning when the first Nan is detected in the code (or even a faulty