On Fri, Oct 24, 2008 at 7:52 PM, Pauli Virtanen <[EMAIL PROTECTED]> wrote:
> Yep, leaks also here: (Numeric 24.2, numpy 1.2.0)
>
>import sys, numpy, Numeric
>na = numpy.array([0.0])
>for i in xrange(100):
>foo = Numeric.array(na, Numeric.Float)
>print
Fri, 24 Oct 2008 14:39:59 -0400, Jose Borreguero wrote:
> My bad. Using the intermediate list does *not* leak. Still, the original
> problems stays. Can anyone run the following code in their machine and
> see if they have leaks? Maybe it only happens to me :(*
>
> import numpy,Numeric
> big=1000
My bad. Using the intermediate list does *not* leak.
Still, the original problems stays. Can anyone run the following code in
their machine and see if they have leaks?
Maybe it only happens to me :(*
import numpy,Numeric
big=1000
na=numpy.array([0.0,])
for i in range(big):
Na=Numeric.array
numpy 1.1.0 (from /usr/lib/python2.4/site-packages/numpy/version.py)
Numeric 24.2 (from
/usr/lib/python2.4/site-packages/Numeric/numeric_version.py)
I also tried with an intermediate list, but got the same result:
*mylist=list(my_numpy_array)
na=Numeric.array( mylist, Numeric.Float)*
I don't have
Jose Borreguero wrote:
> Dear numpy users,
>
> I need to pass a Numeric array to some oldie code from a numpy array.
> I decided to go like this:
>
> for i in range(BIGNUMER):
> my_numpy_array=grabArray(i)
> na=Numeric.array( my_numpy_array, Numeric.Float)
> oldie_code(na)
>
> The cons
Dear numpy users,
I need to pass a Numeric array to some oldie code from a numpy array. I
decided to go like this:
for i in range(BIGNUMER):
my_numpy_array=grabArray(i)
na=Numeric.array( my_numpy_array, Numeric.Float)
oldie_code(na)
The constructor line:
na=Numeric.array( my_numpy_ar