Upgrading numpy solved the problem!
Thanks!
On 06/13/13 17:06, Sebastian Berg wrote:
> On Thu, 2013-06-13 at 16:50 +0200, Pietro Bonfa' wrote:
>> Dear Numpy users,
>>
>> I have a memory leak in my code. A simple way to reproduce my problem is:
>>
>> impor
The numpy version is 1.7.0
In [5]: numpy.version.full_version
Out[5]: '1.7.0b2'
Thanks,
Pietro
On 06/13/13 16:56, Aron Ahmadia wrote:
> Hi Petro,
>
> What version of numpy are you running?
>
> A
>
>
> On Thu, Jun 13, 2013 at 3:50 PM, Pietro Bonfa'
>
):
A[i] = numpy.sum( temp[i].diagonal() )
return A
a = test()
c = [a.t() for i in range(100)]
Running this script will require 1.5 Gb of memory since the 16 mb of
temp arrays are never deallocated.
How can I solve this problem?
Thanks in advances,
Pietro Bonfa'
P.S: I