Re: [Numpy-discussion] Memmap with multiprocessing

2011-04-27 Thread Brent Pedersen
On Wed, Apr 27, 2011 at 4:07 PM, Christoph Gohlke wrote: > I don't think this was working correctly in numpy 1.4 either. The > underlying problem seems to be that instance attributes of ndarray > subtypes get lost during pickling: > > import pickle > import numpy as np > class aarray(np.ndarray):

Re: [Numpy-discussion] Memmap with multiprocessing

2011-04-27 Thread Christoph Gohlke
I don't think this was working correctly in numpy 1.4 either. The underlying problem seems to be that instance attributes of ndarray subtypes get lost during pickling: import pickle import numpy as np class aarray(np.ndarray): def __new__(subtype): self = np.ndarray.__new__(subtype

Re: [Numpy-discussion] Memmap with multiprocessing

2011-04-27 Thread Thiago Franco Moraes
On Tue, Apr 26, 2011 at 6:21 PM, Ralf Gommers wrote: > On Mon, Apr 25, 2011 at 1:16 PM, Thiago Franco Moraes > wrote: >> Hi, >> >> Has anyone confirmed if this is a bug? Should I post this in the bug tracker? > > I see the same thing with recent master. Something very strange is > going on in the

Re: [Numpy-discussion] Memmap with multiprocessing

2011-04-26 Thread Warren Weckesser
On Tue, Apr 26, 2011 at 4:21 PM, Ralf Gommers wrote: > On Mon, Apr 25, 2011 at 1:16 PM, Thiago Franco Moraes > wrote: > > Hi, > > > > Has anyone confirmed if this is a bug? Should I post this in the bug > tracker? > > I see the same thing with recent master. Something very strange is > going on i

Re: [Numpy-discussion] Memmap with multiprocessing

2011-04-26 Thread Ralf Gommers
On Mon, Apr 25, 2011 at 1:16 PM, Thiago Franco Moraes wrote: > Hi, > > Has anyone confirmed if this is a bug? Should I post this in the bug tracker? I see the same thing with recent master. Something very strange is going on in the memmap.__array_finalize__ method under Windows. Can you file a bu

Re: [Numpy-discussion] Memmap with multiprocessing

2011-04-25 Thread Thiago Franco Moraes
Hi, Has anyone confirmed if this is a bug? Should I post this in the bug tracker? Thanks! On Tue, Apr 19, 2011 at 9:01 PM, Thiago Franco de Moraes wrote: > Hi all, > > I'm having a error using memmap objects shared among processes created > by the multprocessing module. This error only happen i

[Numpy-discussion] Memmap with multiprocessing

2011-04-19 Thread Thiago Franco de Moraes
Hi all, I'm having a error using memmap objects shared among processes created by the multprocessing module. This error only happen in Windows with numpy 1.5 or above, in numpy 1.4.1 it doesn't happen, In Linux and Mac OS X it doesn't happen. This error is demonstrated by this little example scrip