I am trying to create a numpy array of certain dimensions however I am getting a Memory Error.
no_of_frames = 1404
no_of_cells = 136192
original_vals = np.zeros((no_of_frames, no_of_cells), dtype=np.float32)
The error I am getting is:
difference_array = np.zeros((no_of_frames, no_of_cells), dtype=np.float32)
MemoryError
According to my calculations 1404 x 136192 * 4 is ~729 MB. Which seems pretty reasonable. The machine I am running this code on has 8 GB of RAM. So why am I getting this error?
I would greatly appreciate any help with this. Thanks!