Re: [Numpy-discussion] subclassing array in c

2012-03-08 Thread Francesc Alted
Sure. Check the memcheck tool of Valgrind: http://valgrind.org/info/tools.html#memcheck It is a really amazing tool. Francesc On Mar 8, 2012, at 11:00 PM, Christoph Gohle wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi again, > > I don't want to look as if I want other peop

Re: [Numpy-discussion] subclassing array in c

2012-03-08 Thread Christoph Gohle
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi again, I don't want to look as if I want other people do my work, so I would like to ask if there is a simple way of tracing memory leaks (without recompiling the python interpreter)? Cheers, Christoph Am 09.03.2012 um 01:22 schrieb Christoph Go

Re: [Numpy-discussion] subclassing array in c

2012-03-08 Thread Christoph Gohle
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Am 08.03.2012 um 20:39 schrieb Pauli Virtanen: > 08.03.2012 17:37, Christoph Gohle kirjoitti: >> thanks for testing. I have now tried on different platforms. I get >> all kinds of crashes on os x (now with numpy 1.6.1) and windows >> with numpy 1.6

Re: [Numpy-discussion] More SPARC pain

2012-03-08 Thread Matthew Brett
Hi, On Tue, Mar 6, 2012 at 8:07 PM, Matthew Brett wrote: > Hi, > > I found this test caused a bus error on current trunk: > > > import numpy as np > > from StringIO import StringIO as BytesIO > > from numpy.testing import assert_array_equal > > > def test_2d_buf(): >    dtt = np.complex64 >    a

Re: [Numpy-discussion] Casting rules changed in trunk?

2012-03-08 Thread Matthew Brett
Hi, On Wed, Mar 7, 2012 at 4:08 PM, Matthew Brett wrote: > Hi, > > I noticed a casting change running the test suite on our image reader, > nibabel: > https://github.com/nipy/nibabel/blob/master/nibabel/tests/test_casting.py > > For this script: > > > import numpy as np > > Adata = np.zeros((2,

Re: [Numpy-discussion] subclassing array in c

2012-03-08 Thread Pauli Virtanen
08.03.2012 17:37, Christoph Gohle kirjoitti: > thanks for testing. I have now tried on different platforms. I get > all kinds of crashes on os x (now with numpy 1.6.1) and windows > with numpy 1.6.0. On Ubuntu with numpy 1.3.0 I get a hughe memory > leak... > > Any hints would be welcome. The typ

Re: [Numpy-discussion] subclassing array in c

2012-03-08 Thread Christoph Gohle
Dear Val, thanks for testing. I have now tried on different platforms. I get all kinds of crashes on os x (now with numpy 1.6.1) and windows with numpy 1.6.0. On Ubuntu with numpy 1.3.0 I get a hughe memory leak... Any hints would be welcome. Thanks, Christoph Am 08.03.2012 um 09:08 schrieb Va

Re: [Numpy-discussion] subclassing array in c

2012-03-08 Thread Val Kalatsky
Hi Christoph, I've just tried a=[spampub.UnitArray(i,{'s':i}) for i in xrange(1000)] and everything looks fine on my side. Probably my test environment is too different to give comparable results: In [3]: call(["uname", "-a"]) Linux ubuntu 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:32:27 UTC