-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MemoryError
when using get_bitinformation
with the python implementation with high-resolution dataset
#223
Comments
Thanks @ayoubft! Could you provide a minimal code snippet and a link to the dataset you are using? This would be of great help. Thanks. |
The error originates from here mutual_info = (p * np.ma.log(p / (pr * ps))).sum(axis=(-1, -2)) / np.log(base) in xbitinfo/xbitinfo/_py_bitinfo.py Lines 143 to 152 in 0d8852b
which confuses me because while |
Maybe related xbitinfo/xbitinfo/_py_bitinfo.py Lines 128 to 139 in 0d8852b
this seems to have an outer loop over the number of bits then an inner loop over all elements in the data. Which means that I suspect |
This issue sounds weirdly familiar, and indeed we discussed this already at the beginning of this year: #156 (comment) |
Thanks @ayoubft! No worries with regards to sharing the dataset. I'll find one myself. |
Working with high resolution dataset :
Dimensions: longitude: 24000; latitude: 12000; time: 1
.When I try to
get_bitinformation
using the python implementation it raises this error:MemoryError: Unable to allocate 8.58 GiB for an array with shape (287976000, 8, 4) and data type bool
PS: When reverting to the julia implementation it works without this error.
Full output
The text was updated successfully, but these errors were encountered: