Re: [Numpy-discussion] snow leopard issues with numpy

2009-09-03 Thread David Cournapeau
Chad Netzer wrote: > On Thu, Sep 3, 2009 at 4:02 PM, Wolfgang > Kerzendorf wrote: > >> my version of python is the one that comes with snow leopard: 2.6.1 >> hope that helps >> > > Huh? I upgraded to Snow Leopard over my Leopard system (i.e not a > fresh install), and my default is python2

Re: [Numpy-discussion] snow leopard issues with numpy

2009-09-03 Thread Chad Netzer
On Thu, Sep 3, 2009 at 4:02 PM, Wolfgang Kerzendorf wrote: > my version of python is the one that comes with snow leopard: 2.6.1 > hope that helps Huh? I upgraded to Snow Leopard over my Leopard system (i.e not a fresh install), and my default is python2.5: $ python Python 2.5 (r25:51918, Sep 1

Re: [Numpy-discussion] snow leopard issues with numpy

2009-09-03 Thread David Cournapeau
On Fri, Sep 4, 2009 at 1:49 AM, Charles R Harris wrote: > > > On Thu, Sep 3, 2009 at 10:39 AM, Robert Kern wrote: >> >> On Thu, Sep 3, 2009 at 11:13, Charles R Harris >> wrote: >> > >> > >> > On Thu, Sep 3, 2009 at 10:02 AM, Wolfgang Kerzendorf >> > wrote: >> >> >> >> I just installed numpy and s

Re: [Numpy-discussion] snow leopard issues with numpy

2009-09-03 Thread Wolfgang Kerzendorf
my version of python is the one that comes with snow leopard: 2.6.1 hope that helps On 03/09/2009, at 18:13 , Charles R Harris wrote: On Thu, Sep 3, 2009 at 10:02 AM, Wolfgang Kerzendorf > wrote: I just installed numpy and scipy (both svn) on OS X 10.6 and just got scipy to work with Robert

Re: [Numpy-discussion] help creating a reversed cumulative histogram

2009-09-03 Thread Tim Michelsen
>> Again, would a function for the >> "empirical inverse survival function" qualify for the >> inclusion into numpy or scipy? > > Sorry, I'm too distracted, correcting myself a second time > "this should *not* have inverse in it, using inverse was a cut and paste > error" > it's empirical survi

Re: [Numpy-discussion] help creating a reversed cumulative histogram

2009-09-03 Thread josef . pktd
On Thu, Sep 3, 2009 at 12:58 PM, Tim Michelsen wrote: >> My first stop is usually wikipedia: > [...] > Thanks. > So I I'known that I have to call the beast a > "empirical inverse survival function", Robert would > also have foundit easier to help. > Anyway, step by step... > >> In the case of the w

Re: [Numpy-discussion] help creating a reversed cumulative histogram

2009-09-03 Thread Tim Michelsen
> My first stop is usually wikipedia: [...] Thanks. So I I'known that I have to call the beast a "empirical inverse survival function", Robert would also have foundit easier to help. Anyway, step by step... > In the case of the weight of pigs, it would be to cumulative weight of > all pigs with

Re: [Numpy-discussion] snow leopard issues with numpy

2009-09-03 Thread Charles R Harris
On Thu, Sep 3, 2009 at 10:39 AM, Robert Kern wrote: > On Thu, Sep 3, 2009 at 11:13, Charles R Harris > wrote: > > > > > > On Thu, Sep 3, 2009 at 10:02 AM, Wolfgang Kerzendorf > > wrote: > >> > >> I just installed numpy and scipy (both svn) on OS X 10.6 and just got > >> scipy to work with Robert

Re: [Numpy-discussion] snow leopard issues with numpy

2009-09-03 Thread Robert Kern
On Thu, Sep 3, 2009 at 11:13, Charles R Harris wrote: > > > On Thu, Sep 3, 2009 at 10:02 AM, Wolfgang Kerzendorf > wrote: >> >> I just installed numpy and scipy (both svn) on OS X 10.6 and just got >> scipy to work with Robert Kern's help. Playing around with numpy I got >> the following segfault:

Re: [Numpy-discussion] snow leopard issues with numpy

2009-09-03 Thread Charles R Harris
On Thu, Sep 3, 2009 at 10:02 AM, Wolfgang Kerzendorf < wkerzend...@googlemail.com> wrote: > I just installed numpy and scipy (both svn) on OS X 10.6 and just got > scipy to work with Robert Kern's help. Playing around with numpy I got > the following segfault: > http://pastebin.com/m35220dbf > I h

[Numpy-discussion] snow leopard issues with numpy

2009-09-03 Thread Wolfgang Kerzendorf
I just installed numpy and scipy (both svn) on OS X 10.6 and just got scipy to work with Robert Kern's help. Playing around with numpy I got the following segfault: http://pastebin.com/m35220dbf I hope someone can make sense of it. Thanks in advance Wolfgang __

Re: [Numpy-discussion] numpy core dump on linux

2009-09-03 Thread Charles R Harris
On Wed, Sep 2, 2009 at 4:23 PM, Jeremy Mayes wrote: > This one line causes python to core dump on linux. > numpy.lexsort([ > numpy.array(['-','-','-','-','-','-','-','-','-','-','-','-','-'])[::-1],numpy.array([732685., > 732685., 732685., 732685., 732685., 732685.,732685., 732685., > 732685

Re: [Numpy-discussion] numpy core dump on linux

2009-09-03 Thread Bruce Southey
On 09/02/2009 10:26 PM, Charles R Harris wrote: On Wed, Sep 2, 2009 at 4:23 PM, Jeremy Mayes > wrote: This one line causes python to core dump on linux. numpy.lexsort([ numpy.array(['-','-','-','-','-','-','-','-','-','-','-','-','-'])[::-1],numpy.ar

Re: [Numpy-discussion] help creating a reversed cumulative histogram

2009-09-03 Thread josef . pktd
On Thu, Sep 3, 2009 at 9:23 AM, Tim Michelsen wrote: >> > Hello, > I have checked the snippets you proposed. > It does what I wanted to achieve. > Obviously, I had to substract the values as Robert > demonstrated. This could also be perceived from > the figure I posted. > > I still have see how I c

Re: [Numpy-discussion] A faster median (Wirth's method)

2009-09-03 Thread Charles R Harris
On Thu, Sep 3, 2009 at 12:14 AM, Sturla Molden wrote: > Chad Netzer skrev: > > That's right, Robert. Basically, I meant doing a median on a square > > (or rectangle) "view" of an array, without first having to ravel(), > > thus generally saving a copy. But actually, since my selection based > >

Re: [Numpy-discussion] help creating a reversed cumulative histogram

2009-09-03 Thread Tim Michelsen
> Hello, I have checked the snippets you proposed. It does what I wanted to achieve. Obviously, I had to substract the values as Robert demonstrated. This could also be perceived from the figure I posted. I still have see how I can optimise the code (c.f. below) or modify to be less complicated

Re: [Numpy-discussion] help creating a reversed cumulative histogram

2009-09-03 Thread Tim Michelsen
> >>> Okay. That is completely different from what you've asked before. > > You are right. > > But it's soemtimes hard to decribe a desired and expected output in > > python terms and pseudocode. > > I still have to lern more numpy vocabs... > > Actually, I apologize. I meant to delete that line b

Re: [Numpy-discussion] snow leopard and Numeric

2009-09-03 Thread Stefano Covino
Apparently, I have solved the problem. I say apparently meaning that at least it compiles and installs smoothly. In file ranf.c (Packages/RNG/Src/ranf.c) insert at the beginning #include and comment line 153 in the original file, where function 'gettomeofday' is re-defined. Cheers, Stef