Skip to content
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

Memory Error #89

Open
princerajsharma31 opened this issue Nov 21, 2020 · 2 comments
Open

Memory Error #89

princerajsharma31 opened this issue Nov 21, 2020 · 2 comments

Comments

@princerajsharma31
Copy link

When I am trying to extract the light curve with HENcurve with a binning of 2^-14 s the task crashes with the error:

File "<array_function internals>", line 6, in bincount
MemoryError: Unable to allocate 8.79 GiB for an array with shape (1179709440,) and data type int64

Then I changed the binning to 2^-10s and light curve can be extracted but then HENfspec crashes with the error:

contents[kcorr] = (integer_part + float_part) * 10.0 ** log10_part
MemoryError: Unable to allocate 563. MiB for an array with shape (73731840,) and data type float64

I am not sure what is going on. I have been getting these error for a few days now and I can not go past these errors.

@matteobachetti
Copy link
Member

Hi @princerajsharma31, thanks for reporting the issue.
At the moment, HENDRICS needs to load all datasets into the RAM. MemoryError means that at a certain point of the processing you have no RAM left. We are working on a memory mapped version of Stingray that will allow larger-than-memory datasets, but at the moment this is not allowed.

I suggest to split the dataset by GTI (HENreadevents --split-gti (...)), calculate the light curve and the power spectra of these chunks, and then sum the power spectra with HENsumfspec.

Hope this helps.

@princerajsharma31
Copy link
Author

princerajsharma31 commented Nov 22, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants