Re: [Numpy-discussion] in(np.nan) on python 2.6

2008-12-04 Thread Christopher Barker
[EMAIL PROTECTED] wrote: >>> Raise a ValueError (even in 2.5, therefore risking to break something) +1 as well > it took me a while to figure out that some > mysteriously appearing zeros were nans that were silently converted > during casting to int. and this is why -- a zero is a perfectly vali

Re: [Numpy-discussion] in(np.nan) on python 2.6

2008-12-04 Thread Pierre GM
On Dec 4, 2008, at 3:24 PM, [EMAIL PROTECTED] wrote: > On Thu, Dec 4, 2008 at 2:40 PM, Jarrod Millman > <[EMAIL PROTECTED]> wrote: >> On Thu, Dec 4, 2008 at 11:14 AM, Pierre GM <[EMAIL PROTECTED]> >> wrote: >>> Raise a ValueError (even in 2.5, therefore risking to break >>> something) >> >>

Re: [Numpy-discussion] in(np.nan) on python 2.6

2008-12-04 Thread josef . pktd
On Thu, Dec 4, 2008 at 2:40 PM, Jarrod Millman <[EMAIL PROTECTED]> wrote: > On Thu, Dec 4, 2008 at 11:14 AM, Pierre GM <[EMAIL PROTECTED]> wrote: >> Raise a ValueError (even in 2.5, therefore risking to break something) > > +1 > +1 I'm not yet a serious user of numpy/scipy, but when debugging the

Re: [Numpy-discussion] in(np.nan) on python 2.6

2008-12-04 Thread Jarrod Millman
On Thu, Dec 4, 2008 at 11:14 AM, Pierre GM <[EMAIL PROTECTED]> wrote: > Raise a ValueError (even in 2.5, therefore risking to break something) +1 -- Jarrod Millman Computational Infrastructure for Research Labs 10 Giannini Hall, UC Berkeley phone: 510.643.4014 http://cirl.berkeley.edu/ _

Re: [Numpy-discussion] in(np.nan) on python 2.6

2008-12-04 Thread Pierre GM
On Nov 25, 2008, at 12:23 PM, Pierre GM wrote: > All, > Sorry to bump my own post, and I was kinda threadjacking anyway: > > Some functions of numy.ma (eg, ma.max, ma.min...) accept explicit > outputs that may not be MaskedArrays. > When such an explicit output is not a MaskedArray, a value tha

[Numpy-discussion] in(np.nan) on python 2.6

2008-11-25 Thread Pierre GM
All, Sorry to bump my own post, and I was kinda threadjacking anyway: Some functions of numy.ma (eg, ma.max, ma.min...) accept explicit outputs that may not be MaskedArrays. When such an explicit output is not a MaskedArray, a value that should have been masked is transformed into np.nan. Tha