Re: [Numpy-discussion] PSF GSoC 2010 (Py3K focus)

2010-03-09 Thread Bruce Southey
On 03/08/2010 11:39 PM, Charles R Harris wrote: On Mon, Mar 8, 2010 at 10:29 PM, Jarrod Millman mill...@berkeley.edu mailto:mill...@berkeley.edu wrote: I added Titus' email regarding the PSF's focus on Py3K-related projects to our SoC ideas wiki page:

Re: [Numpy-discussion] PSF GSoC 2010 (Py3K focus)

2010-03-09 Thread John Hunter
On Mon, Mar 8, 2010 at 11:39 PM, Charles R Harris charlesr.har...@gmail.com wrote: - port matplotlib to Py3K We'd be happy to mentor a project here. To my knowledge, nothing has been done, other than upgrade to CXX6 (our C++ extension lib). Most, but not all, of our extension code is exposed

Re: [Numpy-discussion] printing structured arrays

2010-03-09 Thread Tim Michelsen
Hello, thanks to all who responded and have their input here. I added a little code snippet to show the view and reshape: http://www.scipy.org/Cookbook/Recarray What do you think? Is this worth to go into the official docs? The page http://docs.scipy.org/doc/numpy/user/basics.rec.html is quite

Re: [Numpy-discussion] PSF GSoC 2010 (Py3K focus)

2010-03-09 Thread Pauli Virtanen
Mon, 08 Mar 2010 22:39:00 -0700, Charles R Harris wrote: On Mon, Mar 8, 2010 at 10:29 PM, Jarrod Millman mill...@berkeley.eduwrote: I added Titus' email regarding the PSF's focus on Py3K-related projects to our SoC ideas wiki page: http://projects.scipy.org/scipy/wiki/SummerofCodeIdeas

[Numpy-discussion] Memory leak with matrices?

2010-03-09 Thread David Paul Reichert
Hi, I've got two issues: First, the following seems to cause a memory leak, using numpy 1.3.0: a = matrix(ones(1)) while True: a += 0 This only seems to happen when a is a matrix rather than an array, and when the short hand '+=' is used. Second, I'm not sure whether that's a bug or

Re: [Numpy-discussion] printing structured arrays

2010-03-09 Thread josef . pktd
On Mon, Mar 8, 2010 at 5:50 PM, Tim Michelsen timmichel...@gmx-topmail.de wrote: Hello, thanks to all who responded and have their input here. I added a little code snippet to show the view and reshape: http://www.scipy.org/Cookbook/Recarray What do you think? Is this worth to go into the

Re: [Numpy-discussion] Memory leak with matrices?

2010-03-09 Thread josef . pktd
On Tue, Mar 9, 2010 at 12:31 PM, David Paul Reichert d.p.reich...@sms.ed.ac.uk wrote: Hi, I've got two issues: First, the following seems to cause a memory leak, using numpy 1.3.0: a = matrix(ones(1)) while True:    a += 0 This only seems to happen when a is a matrix rather than an

Re: [Numpy-discussion] Memory leak with matrices?

2010-03-09 Thread David Reichert
Thanks for the reply. Yes never mind the second issue, I had myself confused there. Any comments on the memory leak? On Tue, Mar 9, 2010 at 5:55 PM, josef.p...@gmail.com wrote: On Tue, Mar 9, 2010 at 12:31 PM, David Paul Reichert d.p.reich...@sms.ed.ac.uk wrote: Hi, I've got two

Re: [Numpy-discussion] PSF GSoC 2010 (Py3K focus)

2010-03-09 Thread josef . pktd
On Tue, Mar 9, 2010 at 9:02 AM, Pauli Virtanen pav...@iki.fi wrote: Mon, 08 Mar 2010 22:39:00 -0700, Charles R Harris wrote: On Mon, Mar 8, 2010 at 10:29 PM, Jarrod Millman mill...@berkeley.eduwrote: I added Titus' email regarding the PSF's focus on Py3K-related projects to our SoC ideas

Re: [Numpy-discussion] Memory leak with matrices?

2010-03-09 Thread Robert Kern
On Tue, Mar 9, 2010 at 11:31, David Paul Reichert d.p.reich...@sms.ed.ac.uk wrote: Hi, I've got two issues: First, the following seems to cause a memory leak, using numpy 1.3.0: a = matrix(ones(1)) while True:    a += 0 This only seems to happen when a is a matrix rather than an

Re: [Numpy-discussion] Memory leak with matrices?

2010-03-09 Thread josef . pktd
On Tue, Mar 9, 2010 at 1:28 PM, Robert Kern robert.k...@gmail.com wrote: On Tue, Mar 9, 2010 at 11:31, David Paul Reichert d.p.reich...@sms.ed.ac.uk wrote: Hi, I've got two issues: First, the following seems to cause a memory leak, using numpy 1.3.0: a = matrix(ones(1)) while True:    

Re: [Numpy-discussion] printing structured arrays

2010-03-09 Thread Chris Barker
Tim Michelsen wrote: I still wonder why there is not a quick function for such a view / reshape conversion. Because it is difficult (impossible?) to do in the general case. .view() really isn't that bad, in fact, it remarkably powerful and flexible! -Chris -- Christopher Barker, Ph.D.

[Numpy-discussion] crash at prompt exit after running test

2010-03-09 Thread Johann Cohen-Tanugi
hi there, I just installed the current head of numpy and built it. trying python and then import numpy, and then CTRL-D to exit, all goes well. But doing the same with a numpy.test() before CTRL-D ends up in : clip Ran 2892 tests in 35.814s OK (KNOWNFAIL=4, SKIP=6) nose.result.TextTestResult

Re: [Numpy-discussion] crash at prompt exit after running test

2010-03-09 Thread Robert Kern
On Tue, Mar 9, 2010 at 13:30, Johann Cohen-Tanugi co...@lpta.in2p3.fr wrote: hi there, I just installed the current head of numpy and built it. trying python and then import numpy, and then CTRL-D to exit, all goes well. But doing the same with a numpy.test() before CTRL-D ends up in : clip

Re: [Numpy-discussion] crash at prompt exit after running test

2010-03-09 Thread Johann Cohen-Tanugi
I have tried to localize the core dump in vain any idea where I should look for it? I did not manage to catch it with pdb : [co...@jarrett ~]$ .local/bin/ipython Python 2.6.2 (r262:71600, Jan 25 2010, 18:46:45) Type copyright, credits or license for more information. IPython

Re: [Numpy-discussion] crash at prompt exit after running test

2010-03-09 Thread Robert Kern
On Tue, Mar 9, 2010 at 13:50, Johann Cohen-Tanugi co...@lpta.in2p3.fr wrote: I have tried to localize the core dump in vain any idea where I should look for it? I did not manage to catch it with pdb : Not pdb, gdb. $ gdb python ... (gdb) run Starting program ... ... # Possibly another

Re: [Numpy-discussion] Memory leak in signal.convolve2d? Alternative?

2010-03-09 Thread Robert Kern
On Tue, Mar 9, 2010 at 13:49, David Reichert d.p.reich...@sms.ed.ac.uk wrote: Hi, I just reported a memory leak with matrices, and I might have found another (unrelated) one in the convolve2d function: import scipy.signal from numpy import ones while True:    

Re: [Numpy-discussion] crash at prompt exit after running test

2010-03-09 Thread Johann Cohen-Tanugi
thanks Robert, here it is : exit() python: Modules/gcmodule.c:277: visit_decref: Assertion `gc-gc.gc_refs != 0' failed. Program received signal SIGABRT, Aborted. 0x004a1416 in __kernel_vsyscall () Missing separate debuginfos, use: debuginfo-install atlas-3.8.3-12.fc12.i686

Re: [Numpy-discussion] crash at prompt exit after running test

2010-03-09 Thread Johann Cohen-Tanugi
thinking about it, this morning there was a fedora update to python, so I am using 2.6.2-4.fc12. Looks like the problem is in python itself, hence this piece of info. HTH, Johann On 03/09/2010 09:07 PM, Johann Cohen-Tanugi wrote: thanks Robert, here it is : exit() python:

Re: [Numpy-discussion] printing structured arrays

2010-03-09 Thread Tim Michelsen
I still wonder why there is not a quick function for such a view / reshape conversion. Because it is difficult (impossible?) to do in the general case. .view() really isn't that bad, in fact, it remarkably powerful and flexible! I would not drop .view() but rather add a convenience function

Re: [Numpy-discussion] Memory leak in signal.convolve2d? Alternative?

2010-03-09 Thread David Reichert
Hm, upgrading scipy from 0.7.0 to 0.7.1 didn't do the trick for me (still running numpy 1.3.0). I'm not sure if I feel confident enough to use developer versions, but I'll look into it. Cheers David On Tue, Mar 9, 2010 at 7:57 PM, Robert Kern robert.k...@gmail.com wrote: On Tue, Mar 9, 2010

Re: [Numpy-discussion] Memory leak in signal.convolve2d? Alternative?

2010-03-09 Thread josef . pktd
On Tue, Mar 9, 2010 at 4:24 PM, David Reichert d.p.reich...@sms.ed.ac.uk wrote: Hm, upgrading scipy from 0.7.0 to 0.7.1 didn't do the trick for me (still running numpy 1.3.0). I'm not sure if I feel confident enough to use developer versions, but I'll look into it. If you don't need the extra

Re: [Numpy-discussion] printing structured arrays

2010-03-09 Thread Tim Michelsen
josef.p...@gmail.com schrieb: On Mon, Mar 8, 2010 at 5:50 PM, Tim Michelsen timmichel...@gmx-topmail.de wrote: Hello, thanks to all who responded and have their input here. I added a little code snippet to show the view and reshape: http://www.scipy.org/Cookbook/Recarray What do you

Re: [Numpy-discussion] printing structured arrays

2010-03-09 Thread Tim Michelsen
Is this worth to go into the official docs? The page http://docs.scipy.org/doc/numpy/user/basics.rec.html is quite sparse... I still wonder why there is not a quick function for such a view / reshape conversion. Thanks, the docs for working with arrays with structured dtypes are sparse

Re: [Numpy-discussion] crash at prompt exit after running test

2010-03-09 Thread Pauli Virtanen
ti, 2010-03-09 kello 21:14 +0100, Johann Cohen-Tanugi kirjoitti: thinking about it, this morning there was a fedora update to python, so I am using 2.6.2-4.fc12. Looks like the problem is in python itself, hence this piece of info. That the problem would be in Python is not so clear to me.

Re: [Numpy-discussion] crash at prompt exit after running test

2010-03-09 Thread Johann Cohen-Tanugi
On 03/10/2010 12:07 AM, Pauli Virtanen wrote: ti, 2010-03-09 kello 21:14 +0100, Johann Cohen-Tanugi kirjoitti: thinking about it, this morning there was a fedora update to python, so I am using 2.6.2-4.fc12. Looks like the problem is in python itself, hence this piece of info. That

Re: [Numpy-discussion] crash at prompt exit after running test

2010-03-09 Thread Johann Cohen-Tanugi
On 03/10/2010 12:33 AM, Johann Cohen-Tanugi wrote: On 03/10/2010 12:07 AM, Pauli Virtanen wrote: ti, 2010-03-09 kello 21:14 +0100, Johann Cohen-Tanugi kirjoitti: thinking about it, this morning there was a fedora update to python, so I am using 2.6.2-4.fc12. Looks like the problem is

Re: [Numpy-discussion] crash at prompt exit after running test

2010-03-09 Thread Johann Cohen-Tanugi
more fun : [co...@jarrett tests]$ pwd /home/cohen/sources/python/numpy/numpy/core/tests [co...@jarrett tests]$ python -c 'import test_ufunc' python: Modules/gcmodule.c:277: visit_decref: Assertion `gc-gc.gc_refs != 0' failed. Aborted (core dumped) and in the debugger: (gdb) run Starting

Re: [Numpy-discussion] printing structured arrays

2010-03-09 Thread Bruce Schultz
On Sat, Mar 6, 2010 at 8:35 AM, Gökhan Sever gokhanse...@gmail.com wrote: On Fri, Mar 5, 2010 at 8:00 AM, Bruce Schultz bruce.schu...@gmail.com wrote: Output is: ### ndarray [[ 1.   2. ]  [ 3.   4.1]] ### structured array [(1.0, 2.0) (3.0, 4.0996)] Thanks Bruce I

Re: [Numpy-discussion] Memory leak in signal.convolve2d? Alternative?

2010-03-09 Thread David Reichert
Hi, Just another update: signal.convolve and signal.fftconvolve indeed do not seem to have the problem, however, they are slower by at least a factor of 2 for my situation. Moreover, I also tried out the numpy 1.4.x branch and the latest scipy svn, and a short test seemed to indicate that the

Re: [Numpy-discussion] PSF GSoC 2010 (Py3K focus)

2010-03-09 Thread David Cournapeau
josef.p...@gmail.com wrote: On Tue, Mar 9, 2010 at 9:02 AM, Pauli Virtanen pav...@iki.fi wrote: Mon, 08 Mar 2010 22:39:00 -0700, Charles R Harris wrote: On Mon, Mar 8, 2010 at 10:29 PM, Jarrod Millman mill...@berkeley.eduwrote: I added Titus' email regarding the PSF's focus on Py3K-related

Re: [Numpy-discussion] crash at prompt exit after running test

2010-03-09 Thread Pauli Virtanen
more fun : [co...@jarrett tests]$ pwd /home/cohen/sources/python/numpy/numpy/core/tests [co...@jarrett tests]$ python -c 'import test_ufunc' python: Modules/gcmodule.c:277: visit_decref: Assertion `gc-gc.gc_refs != 0' failed. Aborted (core dumped) What happens if you only import the

Re: [Numpy-discussion] PSF GSoC 2010 (Py3K focus)

2010-03-09 Thread josef . pktd
On Tue, Mar 9, 2010 at 7:32 PM, David Cournapeau da...@silveregg.co.jp wrote: josef.p...@gmail.com wrote: On Tue, Mar 9, 2010 at 9:02 AM, Pauli Virtanen pav...@iki.fi wrote: Mon, 08 Mar 2010 22:39:00 -0700, Charles R Harris wrote: On Mon, Mar 8, 2010 at 10:29 PM, Jarrod Millman

Re: [Numpy-discussion] Memory leak in signal.convolve2d? Alternative?

2010-03-09 Thread josef . pktd
On Tue, Mar 9, 2010 at 7:13 PM, David Reichert d.p.reich...@sms.ed.ac.uk wrote: Hi, Just another update: signal.convolve and signal.fftconvolve indeed do not seem to have the problem, however, they are slower by at least a factor of 2 for my situation. Moreover, I also tried out the numpy

Re: [Numpy-discussion] crash at prompt exit after running test

2010-03-09 Thread Charles R Harris
On Tue, Mar 9, 2010 at 5:52 PM, Johann Cohen-Tanugi co...@lpta.in2p3.frwrote: more fun : [co...@jarrett tests]$ pwd /home/cohen/sources/python/numpy/numpy/core/tests [co...@jarrett tests]$ python -c 'import test_ufunc' python: Modules/gcmodule.c:277: visit_decref: Assertion `gc-gc.gc_refs