Re: [Numpy-discussion] [SciPy-user] median filter with clipping

2007-05-17 Thread Travis Oliphant
Pierre GM wrote: How far away is maskedarray from being able to replace numpy.ma? So far, it does everything that numpy.core.ma does, with I believe more flexibility and some additional features (hard/soft mask, easy subclassing...). Personally, I stopped using numpy.core.ma

[Numpy-discussion] BLAS and LAPACK used?

2007-05-17 Thread lorenzo bolla
Hi all, I need to know the libraries (BLAS and LAPACK) which numpy has been linked to, when I compiled it. I can't remember which ones I used (ATLAS, MKL, etc...)... Is there an easy way to find it out? Thanks in advance, Lorenzo Bolla. ___

Re: [Numpy-discussion] Unfortunate user experience with max()

2007-05-17 Thread Johannes Loehnert
Hi, This can lead to surprising bugs in code that either explicitly expects it to behave like python's max() or implicitly expects that by doing from numpy import max. my solution is to never use numpy.max. For arrays, I always use the method call (somearray.max()). For everything else

Re: [Numpy-discussion] BLAS and LAPACK used?

2007-05-17 Thread Martin Spacek
lorenzo bolla wrote: Hi all, I need to know the libraries (BLAS and LAPACK) which numpy has been linked to, when I compiled it. I can't remember which ones I used (ATLAS, MKL, etc...)... Is there an easy way to find it out? Thanks in advance, Lorenzo Bolla. Yup: import numpy

Re: [Numpy-discussion] BLAS and LAPACK used?

2007-05-17 Thread Nils Wagner
On Thu, 17 May 2007 10:48:40 +0200 lorenzo bolla [EMAIL PROTECTED] wrote: Hi all, I need to know the libraries (BLAS and LAPACK) which numpy has been linked to, when I compiled it. I can't remember which ones I used (ATLAS, MKL, etc...)... Is there an easy way to find it out? Thanks in

[Numpy-discussion] Expected behavior of numpy object arrays. Is this a bug?

2007-05-17 Thread Rudolph van der Merwe
Can someone please confirm if the following is the expected behavior of numpy ndarrays of dtype=object, i.e. object arrays. I suspect it might be a bug. In the Python shell dump below, shouldn't the dtype of oa2[0] and oa2[1] be 'int32' as is the case for oa1[0] and oa1[1] ? Python 2.5.1

Re: [Numpy-discussion] [SciPy-user] median filter with clipping

2007-05-17 Thread David Huard
2007/5/17, Travis Oliphant [EMAIL PROTECTED]: I'm inclined to move his masked array over to ma wholesale. The fact that Pierre sees it as his baby is very important to me. If it doesn't have significant compatibility issues than I'm all for it. I'm mainly interested in hearing how people

Re: [Numpy-discussion] [SciPy-user] median filter with clipping

2007-05-17 Thread Matt Knox
I'm inclined to move his masked array over to ma wholesale. The fact that Pierre sees it as his baby is very important to me. If it doesn't have significant compatibility issues than I'm all for it. I'm mainly interested in hearing how people actually using numpy.ma would respond.

Re: [Numpy-discussion] [SciPy-user] median filter with clipping

2007-05-17 Thread Glen W. Mabey
On Thu, May 17, 2007 at 02:54:22AM -0600, Travis Oliphant wrote: Pierre GM wrote: How far away is maskedarray from being able to replace numpy.ma? So far, it does everything that numpy.core.ma does, with I believe more flexibility and some additional features (hard/soft mask, easy

Re: [Numpy-discussion] [SciPy-user] median filter with clipping

2007-05-17 Thread Pierre GM
n Thursday 17 May 2007 04:54:22 Travis Oliphant wrote: I'm inclined to move his masked array over to ma wholesale. The fact that Pierre sees it as his baby is very important to me. Well, all the credits should go to Paul Dubois, the original author of numpy.core.ma, and the scores of people

Re: [Numpy-discussion] [SciPy-user] median filter with clipping

2007-05-17 Thread David Huard
Pierre, 2007/5/17, Pierre GM [EMAIL PROTECTED]: But I agree: switching may have some subtle consequences in matplotlib (nothing that can't be quickly fiexed, however). All examples in backend_driver.py test seem to run fine (+ others I added that contained masked arrays). David

Re: [Numpy-discussion] Expected behavior of numpy object arrays. Is this a bug?

2007-05-17 Thread Robert Kern
Rudolph van der Merwe wrote: Can someone please confirm if the following is the expected behavior of numpy ndarrays of dtype=object, i.e. object arrays. I suspect it might be a bug. It's expected. The array() function has to make some guesses as to what you meant when you pass it a sequence of

Re: [Numpy-discussion] Unfortunate user experience with max()

2007-05-17 Thread Travis Oliphant
Johannes Loehnert wrote: numpy.sum(x, axis=None, dtype=None, out=None) vs. sum(sequence, start=0) The problem here is that Numeric had sum before Python had sum. So, there is a legacy issue. As you can tell, there are limits to my concern of shadowing builtins. That's what

Re: [Numpy-discussion] [SciPy-user] median filter with clipping

2007-05-17 Thread Eric Firing
Travis Oliphant wrote: [...] I'm inclined to move his masked array over to ma wholesale. The fact that Pierre sees it as his baby is very important to me. If it doesn't have significant compatibility issues than I'm all for it. I'm mainly interested in hearing how people actually using

[Numpy-discussion] Numpy 1.0.2 install question

2007-05-17 Thread Yang, Lu
Hi, I am installing numpy 1.0.2 on AMD Opeteron, Solaris 10. However, I got the following error after running 'python setup.py install. I highly appreciate your help. Running from numpy source directory. non-existing path in 'numpy/distutils': 'site.cfg' F2PY Version 2_3649 blas_opt_info:

Re: [Numpy-discussion] [SciPy-user] median filter with clipping

2007-05-17 Thread Eric Firing
Pierre GM wrote: [...] David, I wouldn't speak about compatibility, just about bugs: the problem was in the implementation of .max() w/ maskedarray. The origin of the problem was (is still) in umath.maximum.reduce that doesn't accept axis=None, so a numpy problem ;). But I agree: