[Numpy-discussion] Calculating density based on distance

2012-01-14 Thread Thiago Franco de Moraes
Hi all, I have the following problem: Given a array with dimension Nx3, where N is generally greater than 1.000.000, for each item in this array I have to calculate its density, Where its density is the number of items from the same array with distance less than a given r. The items are the

[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