Re: [Numpy-discussion] Numpy on Python3

2009-11-22 Thread Sturla Molden
Pauli Virtanen skrev: > XXX: 3K: numpy.random is disabled for now, uses PyString_* > XXX: 3K: numpy.ma is disabled for now -- some issues > I thought numpy.random uses Cython? Is it just a matter of recompiling the pyx-file? > I remember Dag was working on this a bit: how far did it go? > >

Re: [Numpy-discussion] Numpy on Python3

2009-11-22 Thread Pierre GM
On Nov 23, 2009, at 12:35 AM, Pauli Virtanen wrote: > http://github.com/pv/numpy-work/tree/py3k > > $ mkdir -p $PWD/dist/lib/python3.1/site-packages > $ python3 setup.py install --prefix=$PWD/dist > $ cd $PWD/dist/lib/python3.1/site-packages && python3 > Python 3.1.1+ (r311:74480, Oct 11 2009, 20:

Re: [Numpy-discussion] Correlation filter

2009-11-22 Thread josef . pktd
On Fri, Nov 20, 2009 at 4:27 PM, wrote: > On Fri, Nov 20, 2009 at 2:28 PM, Keith Goodman wrote: >> On Fri, Nov 20, 2009 at 11:17 AM,   wrote: >>> On Fri, Nov 20, 2009 at 1:51 PM, Keith Goodman wrote: def corr3(x, y):    x = x - x.mean()    x /= x.std()    nx = x.size  

Re: [Numpy-discussion] Numpy on Python3

2009-11-22 Thread Charles R Harris
On Sun, Nov 22, 2009 at 10:35 PM, Pauli Virtanen wrote: > http://github.com/pv/numpy-work/tree/py3k > > $ mkdir -p $PWD/dist/lib/python3.1/site-packages > $ python3 setup.py install --prefix=$PWD/dist > $ cd $PWD/dist/lib/python3.1/site-packages && python3 > Python 3.1.1+ (r311:74480, Oct 11 2009

Re: [Numpy-discussion] Numpy on Python3

2009-11-22 Thread David Cournapeau
On Mon, Nov 23, 2009 at 2:35 PM, Pauli Virtanen wrote: > It might be nice to have this merged in at some point after 1.4.0 (after > the most obvious glaring bugs have been fixed), so that we could perhaps > start aiming for Python3 compatibility in Numpy 1.5.0. One thing I have on my end is a nu

Re: [Numpy-discussion] Numpy on Python3

2009-11-22 Thread Charles R Harris
On Sun, Nov 22, 2009 at 10:35 PM, Pauli Virtanen wrote: > http://github.com/pv/numpy-work/tree/py3k > > $ mkdir -p $PWD/dist/lib/python3.1/site-packages > $ python3 setup.py install --prefix=$PWD/dist > $ cd $PWD/dist/lib/python3.1/site-packages && python3 > Python 3.1.1+ (r311:74480, Oct 11 2009

[Numpy-discussion] Numpy on Python3

2009-11-22 Thread Pauli Virtanen
http://github.com/pv/numpy-work/tree/py3k $ mkdir -p $PWD/dist/lib/python3.1/site-packages $ python3 setup.py install --prefix=$PWD/dist $ cd $PWD/dist/lib/python3.1/site-packages && python3 Python 3.1.1+ (r311:74480, Oct 11 2009, 20:22:16) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits

Re: [Numpy-discussion] neighborhood iterator

2009-11-22 Thread David Warde-Farley
On 22-Nov-09, at 12:50 PM, Nadav Horesh wrote: > > I wonder if the neighbourhood iterator can be used as a more > efficient replacement for ndimage.generic_filter. Is there a way to > use it from cython? Yes, using the NumPy C API, called like any other C function is from Cython. Something

Re: [Numpy-discussion] Installing numpy under cygwin

2009-11-22 Thread Olivia Cheronet
Hello, I attempted to install Numpy for my Cygwin python again, by simply executing: >python setup.py install However, I now get the following: >File "numpy/core/setup.py", line 253, in check_mathlib > raise EnvironmentError("math library missing; rerun " >EnvironmentError: math library m

Re: [Numpy-discussion] 2to3c: 2to3 for C extensions

2009-11-22 Thread Pauli Virtanen
su, 2009-11-22 kello 19:28 +0100, René Dudfield kirjoitti: [clip] > I've been working on this too... see the previous py3k thread for > details of my plan. See http://github.com/illume/numpy3k/tree/work > for my (not very much) progress. > > I don't have time for about a week to do any more work

Re: [Numpy-discussion] 2to3c: 2to3 for C extensions

2009-11-22 Thread René Dudfield
On Sun, Nov 22, 2009 at 7:28 PM, René Dudfield wrote: > On Sun, Nov 22, 2009 at 7:16 PM, Pauli Virtanen wrote: >> la, 2009-11-21 kello 20:00 -0500, David Warde-Farley kirjoitti: >>> Guido posted a link to this on Twitter, it might be of interest to >>> people interested in the NumPy Python 3 tran

Re: [Numpy-discussion] failure building trunk with mingw

2009-11-22 Thread Charles R Harris
On Sun, Nov 22, 2009 at 6:28 AM, wrote: > On Sun, Nov 22, 2009 at 2:35 AM, David Cournapeau > wrote: > > On Wed, Nov 18, 2009 at 6:10 PM, David Cournapeau > wrote: > >> On Wed, Nov 18, 2009 at 12:38 AM, wrote: > >> > >>> > >>> Now numpy builds without problems. > >>> When I run the tests I ge

Re: [Numpy-discussion] 2to3c: 2to3 for C extensions

2009-11-22 Thread René Dudfield
On Sun, Nov 22, 2009 at 7:16 PM, Pauli Virtanen wrote: > la, 2009-11-21 kello 20:00 -0500, David Warde-Farley kirjoitti: >> Guido posted a link to this on Twitter, it might be of interest to >> people interested in the NumPy Python 3 transition: >> >>       http://dmalcolm.livejournal.com/3935.htm

Re: [Numpy-discussion] failure building trunk with mingw

2009-11-22 Thread Charles R Harris
On Sun, Nov 22, 2009 at 8:37 AM, wrote: > On Sun, Nov 22, 2009 at 10:25 AM, David Cournapeau > wrote: > > On Mon, Nov 23, 2009 at 12:14 AM, wrote: > >> On Sun, Nov 22, 2009 at 10:01 AM, David Cournapeau > wrote: > >>> On Sun, Nov 22, 2009 at 11:45 PM, Charles R Harris > >>> wrote: > > >

Re: [Numpy-discussion] 2to3c: 2to3 for C extensions

2009-11-22 Thread Pauli Virtanen
la, 2009-11-21 kello 20:00 -0500, David Warde-Farley kirjoitti: > Guido posted a link to this on Twitter, it might be of interest to > people interested in the NumPy Python 3 transition: > > http://dmalcolm.livejournal.com/3935.html > > It's doubtful this is a magic bullet (at least, not

[Numpy-discussion] neighborhood iterator

2009-11-22 Thread Nadav Horesh
I wonder if the neighbourhood iterator can be used as a more efficient replacement for ndimage.generic_filter. Is there a way to use it from cython? Nadav. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/l

Re: [Numpy-discussion] failure building trunk with mingw

2009-11-22 Thread josef . pktd
On Sun, Nov 22, 2009 at 10:47 AM, wrote: > On Sun, Nov 22, 2009 at 10:37 AM,   wrote: >> On Sun, Nov 22, 2009 at 10:25 AM, David Cournapeau >> wrote: >>> On Mon, Nov 23, 2009 at 12:14 AM,   wrote: On Sun, Nov 22, 2009 at 10:01 AM, David Cournapeau wrote: > On Sun, Nov 22, 2009 a

Re: [Numpy-discussion] failure building trunk with mingw

2009-11-22 Thread josef . pktd
On Sun, Nov 22, 2009 at 10:37 AM, wrote: > On Sun, Nov 22, 2009 at 10:25 AM, David Cournapeau wrote: >> On Mon, Nov 23, 2009 at 12:14 AM,   wrote: >>> On Sun, Nov 22, 2009 at 10:01 AM, David Cournapeau >>> wrote: On Sun, Nov 22, 2009 at 11:45 PM, Charles R Harris wrote: > >

Re: [Numpy-discussion] failure building trunk with mingw

2009-11-22 Thread josef . pktd
On Sun, Nov 22, 2009 at 10:25 AM, David Cournapeau wrote: > On Mon, Nov 23, 2009 at 12:14 AM,   wrote: >> On Sun, Nov 22, 2009 at 10:01 AM, David Cournapeau >> wrote: >>> On Sun, Nov 22, 2009 at 11:45 PM, Charles R Harris >>> wrote: Might be nice to print out the actual values of np.s

Re: [Numpy-discussion] failure building trunk with mingw

2009-11-22 Thread David Cournapeau
On Mon, Nov 23, 2009 at 12:14 AM, wrote: > On Sun, Nov 22, 2009 at 10:01 AM, David Cournapeau wrote: >> On Sun, Nov 22, 2009 at 11:45 PM, Charles R Harris >> wrote: >>> >>> Might be nice to print out the actual values of np.spacing and np.nextafter >>> here. >>> >> >> Yes, I should add some uti

Re: [Numpy-discussion] failure building trunk with mingw

2009-11-22 Thread josef . pktd
On Sun, Nov 22, 2009 at 10:01 AM, David Cournapeau wrote: > On Sun, Nov 22, 2009 at 11:45 PM, Charles R Harris > wrote: >> >> Might be nice to print out the actual values of np.spacing and np.nextafter >> here. >> > > Yes, I should add some utilities to print those for this kind of test. > But in

Re: [Numpy-discussion] failure building trunk with mingw

2009-11-22 Thread David Cournapeau
On Sun, Nov 22, 2009 at 11:45 PM, Charles R Harris wrote: > > Might be nice to print out the actual values of np.spacing and np.nextafter > here. > Yes, I should add some utilities to print those for this kind of test. But in this case, I know the problem: mingw gcc use 80 bits long double but it

Re: [Numpy-discussion] failure building trunk with mingw

2009-11-22 Thread Charles R Harris
On Sun, Nov 22, 2009 at 6:28 AM, wrote: > On Sun, Nov 22, 2009 at 2:35 AM, David Cournapeau > wrote: > > On Wed, Nov 18, 2009 at 6:10 PM, David Cournapeau > wrote: > >> On Wed, Nov 18, 2009 at 12:38 AM, wrote: > >> > >>> > >>> Now numpy builds without problems. > >>> When I run the tests I ge

Re: [Numpy-discussion] failure building trunk with mingw

2009-11-22 Thread josef . pktd
On Sun, Nov 22, 2009 at 2:35 AM, David Cournapeau wrote: > On Wed, Nov 18, 2009 at 6:10 PM, David Cournapeau wrote: >> On Wed, Nov 18, 2009 at 12:38 AM,   wrote: >> >>> >>> Now numpy builds without problems. >>> When I run the tests I get 16 failures mostly nan related. I have no idea >>> whether