np.memap won't work without mode parameter if the file does not exist yet (receipe 4.9)
rndblnch opened this issue · comments
rndblnch commented
the memory mapping exemple will only work if the file already exists.
to make it work regardless of that, it should have the mode parameter filled:
f = np.memmap('memmapped.dat', dtype=np.float32, mode='w+', shape=(nrows, ncols))
Cyrille Rossant commented
Thanks! PR welcome :)