def ones(shape, dtype='d'):
    sa = create(shape, dtype='d')

    sa[:] = numpy.ones(1, dtype)
    return sa
Create an shared array initialised to ones. Avoid object arrays, as these
dataset/ETHPy150Open aheadley/pynemap/shmem.py/ones