gmdsi / GMDSI_notebooks

python-based predictive groundwater modeling workflow examples
GNU General Public License v3.0
49 stars 31 forks source link

MemoryError: Unable to allocate 28.9 GiB for an array with shape (62227, 62227) and data type float64 #44

Closed hjia1005 closed 2 years ago

hjia1005 commented 2 years ago

Hi,

I am running the freyberg_obs_and_weights.ipynb and run into this error message. My pc is not able to deal with that size of matrix. Any other way to get it run?

image

jtwhite79 commented 2 years ago

It seems like there are far too many nonzero weighted observations at that point in tbe workflow. Did you run the pstfrom notebook first? If so, can you try restarting the kernel and running all cells from top to bottom?

hjia1005 commented 2 years ago

Yes, I had something wrong in the pstfrom notebook and didn't try to fix it before I ran the obs_and_weight notebook. All good now. Thank you very much for your reply!