Re: [Numpy-discussion] compress numpy vs .numarray

2007-01-04 Thread Robert Kern
Sebastian Haase wrote: > Is N.extract() the equivalent of numarray.compress() ? Only for the specific flattening behavior that you are talking about. However, numpy.extract() does not have the axis= argument that numarray.compress() does. -- Robert Kern "I have come to believe that the whole

Re: [Numpy-discussion] compress numpy vs .numarray

2007-01-04 Thread Robert Kern
Sebastian Haase wrote: > Hi! > when calling compress > I get this error message after moving to numpy: > > ValueError: 'condition must be 1-d array' > > Is the reason for this the change of the default axis from > axis=0 > to > axis=None Not really, it's just that N-d arrays don't make much sens

Re: [Numpy-discussion] compress numpy vs .numarray

2007-01-04 Thread Sebastian Haase
On 1/4/07, Sebastian Haase <[EMAIL PROTECTED]> wrote: > Hi! > when calling compress > I get this error message after moving to numpy: > > ValueError: 'condition must be 1-d array' > > Is the reason for this the change of the default axis from > axis=0 > to > axis=None > > What does axis=None mean i

[Numpy-discussion] compress numpy vs .numarray

2007-01-04 Thread Sebastian Haase
Hi! when calling compress I get this error message after moving to numpy: ValueError: 'condition must be 1-d array' Is the reason for this the change of the default axis from axis=0 to axis=None What does axis=None mean in this case !? Thanks, -Sebastian