[Numpy-discussion] memory usage question

2010-06-06 Thread Tom Kuiper
Greetings all. I have a feeling that, coming at this with a background in FORTRAN and C, I'm missing some subtlety, possibly of an OO nature. Basically, I'm looping over very large data arrays and memory usage just keeps growing even though I re-use the arrays. Below is a stripped down versi

Re: [Numpy-discussion] Memory Usage Question

2010-06-08 Thread Tom Kuiper
Re: [Numpy-discussion] memory usage question To: numpy-discussion@scipy.org On 06/06/2010 02:17 PM, Tom Kuiper wrote: Greetings all. I have a feeling that, coming at this with a background in FORTRAN and C, I'm missing some subtlety, possibly of an OO nature. Basically, I'm loopin

Re: [Numpy-discussion] Memory Usage Question - clarification

2010-06-08 Thread Tom Kuiper
In fact, 'report_memory' shows that memory use was constant throughout all 256 iterations. Thank you for the hint, Eric. > Date: Tue, 08 Jun 2010 09:22:41 -0700 > From: Tom Kuiper > Subject: Re: [Numpy-discussion] Memory Usage Question > To: "numpy-discussion@scipy.or

[Numpy-discussion] memmap capability

2009-08-07 Thread Tom Kuiper
ves opening and closing arrays repeatedly. Regards Tom Kuiper ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] memmap, write through and flush

2009-08-08 Thread Tom Kuiper
There is something curious here. The second flush() fails. Can anyone explain this? Tom --- code snippet ... # create a memmap with dtype and shape that matches the data fp = np.memmap(filename, dtype='float32', mode='w+', shape=(3,4)) print "Initial me