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 wrote: > 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' faile

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 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 1.4.x branch and

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 wrote: > josef.p...@gmail.com wrote: >> On Tue, Mar 9, 2010 at 9:02 AM, Pauli Virtanen wrote: >>> Mon, 08 Mar 2010 22:39:00 -0700, Charles R Harris wrote: On Mon, Mar 8, 2010 at 10:29 PM, Jarrod Millman wrote: > I added Titus' email r

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 David Cournapeau
josef.p...@gmail.com wrote: > On Tue, Mar 9, 2010 at 9:02 AM, Pauli Virtanen wrote: >> Mon, 08 Mar 2010 22:39:00 -0700, Charles R Harris wrote: >>> On Mon, Mar 8, 2010 at 10:29 PM, Jarrod Millman >>> wrote: I added Titus' email regarding the PSF's focus on Py3K-related projects to our So

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 me

Re: [Numpy-discussion] printing structured arrays

2010-03-09 Thread Bruce Schultz
On Sat, Mar 6, 2010 at 8:35 AM, Gökhan Sever wrote: > > > On Fri, Mar 5, 2010 at 8:00 AM, Bruce Schultz > wrote: >> >> Output is: >> ### ndarray >> [[ 1.   2. ] >>  [ 3.   4.1]] >> ### structured array >> [(1.0, 2.0) (3.0, 4.0996)] >> >> >> Thanks >> Bruce >> > > I still couldn't figu

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 progra

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 in

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 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] 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 dtyp

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 > 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 t

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 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 options, you could al

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 wrote: > On Tue, Mar 9, 2010 at 13:49, David Reiche

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 fu

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: Modules/

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 compat-libf2c-3

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 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: >     scipy.signal.convolve2d(ones((1,1)), ones((

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 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 (gdb) prompt: (gdb)

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 0.11.alpha1

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

2010-03-09 Thread David Reichert
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: scipy.signal.convolve2d(ones((1,1)), ones((1,1))) Is there an alternative implementation of a 2d convolution? O

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 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 : > > Ran 2892 tests in

[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 : Ran 2892 tests in 35.814s OK (KNOWNFAIL=4, SKIP=6) >>> python: Modules/gcmodule.c:277

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. Oce

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

2010-03-09 Thread josef . pktd
On Tue, Mar 9, 2010 at 1:28 PM, Robert Kern wrote: > On Tue, Mar 9, 2010 at 11:31, David Paul Reichert > 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 o

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

2010-03-09 Thread Robert Kern
On Tue, Mar 9, 2010 at 11:31, David Paul Reichert 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 array, and whe

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 wrote: > Mon, 08 Mar 2010 22:39:00 -0700, Charles R Harris wrote: >> On Mon, Mar 8, 2010 at 10:29 PM, Jarrod Millman >> wrote: >> > I added Titus' email regarding the PSF's focus on Py3K-related >> > projects to our SoC ideas wiki page: >> > http://pr

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, wrote: > On Tue, Mar 9, 2010 at 12:31 PM, David Paul Reichert > wrote: > > Hi, > > > > I've got two issues: > > > > First, the following seems t

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 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 array, and

Re: [Numpy-discussion] printing structured arrays

2010-03-09 Thread josef . pktd
On Mon, Mar 8, 2010 at 5:50 PM, Tim Michelsen 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 official docs? > T

[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 whet

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 > wrote: > > 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 > > > > Given Ti

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 s

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 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 through CXX, which as of

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 > wrote: 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/SummerofCo