Re: [Numpy-discussion] memmap, write through and flush

2009-08-12 Thread Scott Sinclair
> 2009/8/12 Robert Kern : > On Sat, Aug 8, 2009 at 21:33, Tom Kuiper wrote: >> There is something curious here.  The second flush() fails.  Can anyone >> explain this? > > numpy.append() does not append values in-place. It is just a > convenience wrapper for numpy.concatenate(). Meaning that a cop

Re: [Numpy-discussion] memmap, write through and flush

2009-08-12 Thread Robert Kern
On Sat, Aug 8, 2009 at 21:33, Tom Kuiper wrote: > There is something curious here.  The second flush() fails.  Can anyone > explain this? numpy.append() does not append values in-place. It is just a convenience wrapper for numpy.concatenate(). -- Robert Kern "I have come to believe that the who

[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