[Numpy-discussion] Numpy

2008-01-29 Thread matthew yeomans
Hello Dear Members of Numpy. I experienced some problems using numpy when i tried to compile it with py2exe. How this is done? Thanks and Regrads Matthew -- Kollox Ghal Xejn ___ Numpy-discussion mailing list Numpy-discussion@scipy.org

Re: [Numpy-discussion] preparing for 1.0.5 release

2008-01-29 Thread Travis E. Oliphant
Matthew Brett wrote: Hi, http://projects.scipy.org/scipy/numpy/browser/branches/build_with_scons/ Excellent idea - and congratulations to David for all his hard work - but this is a large change, and I wonder if we need more time with the scons build system in the svn trunk?

[Numpy-discussion] Median again

2008-01-29 Thread Matthew Brett
Hi, I was wondering whether there was any plan to change the anomalous interface of median, for example compared to 'mean', 'min', 'max' np.mean(a, axis=None, dtype=None, out=None) whereas: np.median(m) 'median(m) returns a median of m along the first dimension of m.' I think it would be a

Re: [Numpy-discussion] difference numpy/matlab

2008-01-29 Thread Stuart Brorson
I have to agree with Lorenzo. There is no natural ordering of the complex numbers. Any way you order them is arbitrary. Accepting this, the question then becomes what should NumPy do when the user tries to do order comparison operations on complex numbers. The problem is that NumPy is

Re: [Numpy-discussion] argsort memory problem?

2008-01-29 Thread Lou Pecora
This still occurs in numpy 1.0.3.1 so must have been fixed between that and your 1.0.4-5 version. By the way the memory problem crashes my Intel Mac Book Pro (system 10.4.11) with the gray screen and black dialog box telling me to restart my computer. A very UN-unix like and UN-Mac like way of

Re: [Numpy-discussion] argsort memory problem?

2008-01-29 Thread Alexandre Fayolle
On Tue, Jan 29, 2008 at 02:58:15PM +0100, Oriol Vendrell wrote: Hi all, I've noticed something that looks like an odd behaviour in array.argsort(). # test1 - from numpy import array while True: a=array([8.0,7.0,6.0,5.0,4.0,2.0]) i=a.argsort() #

Re: [Numpy-discussion] preparing for 1.0.5 release

2008-01-29 Thread David Cournapeau
Matthew Brett wrote: Hi, http://projects.scipy.org/scipy/numpy/browser/branches/build_with_scons/ Excellent idea - and congratulations to David for all his hard work - but this is a large change, and I wonder if we need more time with the scons build system in the svn trunk? Not to say

[Numpy-discussion] difference numpy/matlab

2008-01-29 Thread lorenzo bolla
I noticed that: min([1+1j,-1+3j]) gives 1+1j in matlab (where for complex, min(abs) is used) but gives -1+3j in numpy (where lexicographic order is used) shouldn't this be mentioned somewhere in Numpy for Matlab users webpage? -- Lorenzo Bolla [EMAIL PROTECTED] http://lorenzobolla.emurse.com/

Re: [Numpy-discussion] difference numpy/matlab

2008-01-29 Thread Robert Kern
Stuart Brorson wrote: I have to agree with Lorenzo. There is no natural ordering of the complex numbers. Any way you order them is arbitrary. Accepting this, the question then becomes what should NumPy do when the user tries to do order comparison operations on complex numbers. The

Re: [Numpy-discussion] difference numpy/matlab

2008-01-29 Thread lorenzo bolla
I'd rather say arbitrary. On 1/29/08, Neal Becker [EMAIL PROTECTED] wrote: lorenzo bolla wrote: I noticed that: min([1+1j,-1+3j]) gives 1+1j in matlab (where for complex, min(abs) is used) but gives -1+3j in numpy (where lexicographic order is used) shouldn't this be mentioned

Re: [Numpy-discussion] preparing for 1.0.5 release

2008-01-29 Thread Matthew Brett
Hi, http://projects.scipy.org/scipy/numpy/browser/branches/build_with_scons/ Excellent idea - and congratulations to David for all his hard work - but this is a large change, and I wonder if we need more time with the scons build system in the svn trunk? Not to say it should not be in 1.0.5,

[Numpy-discussion] argsort memory problem?

2008-01-29 Thread Oriol Vendrell
Hi all, I've noticed something that looks like an odd behaviour in array.argsort(). # test1 - from numpy import array while True: a=array([8.0,7.0,6.0,5.0,4.0,2.0]) i=a.argsort() # --- # test2 - from numpy import array

Re: [Numpy-discussion] difference numpy/matlab

2008-01-29 Thread Neal Becker
lorenzo bolla wrote: I noticed that: min([1+1j,-1+3j]) gives 1+1j in matlab (where for complex, min(abs) is used) but gives -1+3j in numpy (where lexicographic order is used) shouldn't this be mentioned somewhere in Numpy for Matlab users webpage? It should be stated that they're

Re: [Numpy-discussion] Median again

2008-01-29 Thread Joris De Ridder
This feature request has been repeatedly asked before (e.g. 6 months ago). The relevant ticket (#558, although this only asks for axis support) mentions a milestone 1.1. I would like to ask if it could be moved somewhat higher on the priority list. I provided some code for axis support

Re: [Numpy-discussion] Median again

2008-01-29 Thread Matthew Brett
Hi, median moved mediandim0 implementation of medianwithaxis or similar, with same call signature as mean. Deprecation warning for use of median, and return of mediandim0 for now. Eventual move of median to return medianwithaxis. This would confuse people even more, I'm afraid.

Re: [Numpy-discussion] Median again

2008-01-29 Thread Alexander Michael
On Jan 29, 2008, at 11:51 AM, Joris De Ridder wrote: This feature request has been repeatedly asked before (e.g. 6 months ago). The relevant ticket (#558, although this only asks for axis support) mentions a milestone 1.1. I would like to ask if it could be moved somewhat higher on the

Re: [Numpy-discussion] argsort memory problem?

2008-01-29 Thread Robin
On Jan 29, 2008 7:16 PM, Lou Pecora [EMAIL PROTECTED] wrote: Hmmm... Interesting. I am using Python 2.4.4. It would be nice to have other Mac people with same/other Python and numpy versions try the argsort bug code. I don't see any memory leak with the test code. Mac OS X 10.5.1 Python

Re: [Numpy-discussion] Median again

2008-01-29 Thread Andrew Straw
Considering that many of the statistical functions (mean, std, median) must iterate over all the data and that people (or at least myself) typically call them sequentially on the same data, it may make sense to make a super-function with less repetition. Instead of: x_mean = np.mean(x) x_median =

Re: [Numpy-discussion] argsort memory problem?

2008-01-29 Thread Lou Pecora
Hmmm... Interesting. I am using Python 2.4.4. It would be nice to have other Mac people with same/other Python and numpy versions try the argsort bug code. -- Lou Pecora --- Francesc Altet [EMAIL PROTECTED] wrote: A Tuesday 29 January 2008, Lou Pecora escrigué: This still occurs in numpy

Re: [Numpy-discussion] preparing for 1.0.5 release

2008-01-29 Thread Matthew Brett
Hi, All that is going to be merged are the hooks necessary to allow his numscons package to work. This is not a big change, as far as I know. Yes, sorry, I misunderstood - and had thought the plan was to move to the numscons build system as the default. Now I've understood it, it sounds

Re: [Numpy-discussion] Median again

2008-01-29 Thread Eric Firing
Andrew Straw wrote: Considering that many of the statistical functions (mean, std, median) must iterate over all the data and that people (or at least myself) typically call them sequentially on the same data, it may make sense to make a super-function with less repetition.

Re: [Numpy-discussion] Median again

2008-01-29 Thread Matthew Brett
Hi, median moved mediandim0 implementation of medianwithaxis or similar, with same call signature as mean. But - for the median function change - do we agree that this should be changed? I think it is a significant wart in the numpy API, and has caught quite a few people... Matthew

[Numpy-discussion] load movie frames in python?

2008-01-29 Thread Brian Blais
Hello, Is there a way to read frames of a movie in python? Ideally, something as simple as: for frame in movie('mymovie.mov'): pass where frame is either a 2-D list, or a numpy array? The movie format can be anything, because I can probably convert things, but most convenient

Re: [Numpy-discussion] load movie frames in python?

2008-01-29 Thread Hans Meine
On Dienstag 29 Januar 2008, Brian Blais wrote: Is there a way to read frames of a movie in python? Ideally, something as simple as: for frame in movie('mymovie.mov'): pass where frame is either a 2-D list, or a numpy array? The movie format can be anything, because I can probably

Re: [Numpy-discussion] Median again

2008-01-29 Thread Travis E. Oliphant
Matthew Brett wrote: Hi, median moved mediandim0 implementation of medianwithaxis or similar, with same call signature as mean. But - for the median function change - do we agree that this should be changed? I think it is a significant wart in the numpy API, and has caught

Re: [Numpy-discussion] Median again

2008-01-29 Thread Joris De Ridder
On 30 Jan 2008, at 00:32, Travis E. Oliphant wrote: Matthew Brett wrote: Hi, median moved mediandim0 implementation of medianwithaxis or similar, with same call signature as mean. But - for the median function change - do we agree that this should be changed? I think it is a

Re: [Numpy-discussion] Median again

2008-01-29 Thread Travis E. Oliphant
Joris De Ridder wrote: On 30 Jan 2008, at 00:32, Travis E. Oliphant wrote: Matthew Brett wrote: Hi, median moved mediandim0 implementation of medianwithaxis or similar, with same call signature as mean. But - for the median function change - do we agree

Re: [Numpy-discussion] load movie frames in python?

2008-01-29 Thread Brian Blais
On Jan 29, 2008, at Jan 29:8:24 PM, Andrew Straw wrote: I'd suggest pyglet's avbin library. great suggestion! I never would have thought to do that. Do you happen to know how to convert a player.texture into a numpy.array? there is ImageData, but I can't seem to figure out how to do

Re: [Numpy-discussion] load movie frames in python?

2008-01-29 Thread Andrew Straw
I'm pretty sure there's code floating around the pyglet mailing list. I'd be happy to add it to http://code.astraw.com/projects/motmot/wiki/pygarrayimage if it seems reasonable. (pygarrayimage goes from numpy array to pyglet texture). Brian Blais wrote: On Jan 29, 2008, at Jan 29:8:24 PM, Andrew