def create(shape, dtype='d'):
    shape = numpy.atleast_1d(shape).astype('i')

    #we're going to use a flat ctypes array
    N = numpy.prod(shape)

    dtype = numpy.dtype(dtype)

    #if the dtype's relatively simple create the corresponding ctypes array
    #otherwise create a suitably sized byte array
    dt = dtype.char

    if not dt in sharedctypes.typecode_to_type.keys():
        dt = 'b'
        N *= dtype.itemsize

    a = sharedctypes.RawArray(dt, N)

    sa =  shmarray(a, shape, dtype)

    return sa
Create an uninitialised shared array. Avoid object arrays, as these
dataset/ETHPy150Open aheadley/pynemap/shmem.py/create