numpy version and numpy.asarray behavior issue

I just installed 1.0.3.1 on top of Enthought's and asarray() works. But... Although the creation of an array from an address via a Dummy class is kosher in one process (as in the previous attachment), it fails across processes - the array is created, but gives a "Python has generated errors" window if the second process even attempts to read. It can seem to work across processes with mmap.mmap() and tags (used in Windows) def arrSharedMemory(shape, dtype, tag="PySharedMemory", access=None): ## Windows only ! share memory between different ## processes if same `tag` is used. itemsize = N.dtype(dtype).itemsize count = N.product(shape) size = count * itemsize import mmap sharedmem = mmap.mmap(0, size, tag, access) a=N.frombuffer(sharedmem, dtype, count) a.shape = shape return a I guess I'll use mmap unless someone can point out otherwise.... Thanks, Ray
participants (1)
-
Ray S