Nils Wagner nwagner@iam.uni-stuttgart...
Thu Jun 21 02:00:51 CDT 2007

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

```