i trying create numpy array of dimensions getting 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 getting is:
difference_array = np.zeros((no_of_frames, no_of_cells), dtype=np.float32) memoryerror
according calculations 1404 x 136192 * 4 ~729 mb. seems pretty reasonable. machine running code on has 8 gb of ram. why getting error?
i appreciate this. thanks!
if working in 32bit python limited 32bit address space (~2gb)
if have other stuff going on maybe exceeding limit
in addition numpy requires contiguous memory space in order create lists ... means has find uninterupted 768mb block of ram (which kind of hard)
Comments
Post a Comment