[SciPy-dev] St9bad_alloc
Maik Trömel
mtroemel81@web...
Thu Jun 21 03:52:02 CDT 2007
My system has:
Python 2.4.1
Scipy '0.5.2'
Numpy '1.0.1'
The Second System was Python 2.5.1, with the same scipy and numpy versions.
Both system are running with Debian Testing.
At the moment I can't update, but I'll try out.
Greetings Maik
> -----Ursprüngliche Nachricht-----
> Von: SciPy Developers List <scipy-dev@scipy.org>
> Gesendet: 21.06.07 09:01:28
> An: SciPy Developers List <scipy-dev@scipy.org>
> Betreff: Re: [SciPy-dev] St9bad_alloc
>
> Maik Trömel wrote:
> > I tried it out at another system and I get the same error.
> > Probably there is memory leak in the delaunay-package. Or does anybody else have an idea what the problem could be?
> >
> > Here is an example script (with sub-matrixes) which crashes:
> >
> > from numpy import *
> > from scipy import *
> > from numpy.random import *
> > from scipy.sandbox.delaunay import *
> >
> > index_y= []
> > index_x = []
> > value = []
> > for i in range(200):
> > index_y.append(randint(10,2500))
> > index_x.append(randint(10,2500))
> > value.append(randint(1,10))
> > nwyx = indices((2600, 2548))
> > tri = Triangulation(index_y, index_x)
> > interp = tri.nn_interpolator(value)
> > nwwert = zeros((2600, 2548))
> > nwwert[0:1300, 0:1300] = interp(nwyx[0][0:1300, 0:1300], nwyx[1][0:1300, 0:1300])
> > nwwert[0:1300, 1300:2548] = interp(nwyx[0][0:1300, 1300:2548], nwyx[1][0:1300, 1300:2548])
> > nwwert[1300:2600, 0:1300] = interp(nwyx[0][1300:2600, 0:1300], nwyx[1][1300:2600, 0:1300])
> > nwwert[1300:2600, 1300:2548] = interp(nwyx[0][1300:2600, 1300:2548], nwyx[1][1300:2600, 1300:2548])
> >
> > nwwert = where(nwwert == nwwert, nwwert, 0)
> > print nwwert.max()
> >
> > Greetings Maik
> >
> >
>
> Here is the output of your script
> python -i maik.py
> 9.0
> >>>
> >>> import scipy
> >>> scipy.__version__
> '0.5.3.dev3112'
> >>> import numpy
> >>> numpy.__version__
> '1.0.4.dev3875'
>
>
> Nils
>
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-dev
>
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066
More information about the Scipy-dev
mailing list