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

MemoryError in loadFITS_PrimmaryOnly #55

Closed
capgadsx opened this issue May 31, 2017 · 3 comments
Closed

MemoryError in loadFITS_PrimmaryOnly #55

capgadsx opened this issue May 31, 2017 · 3 comments
Assignees

Comments

@capgadsx
Copy link
Member

When using loadFITS_PrimmaryOnly() with big fits files (e.g. ALMA01002186_00_00_00.fits 1.8G) the function crashes with a MemoryError exception in the line:
hduobject.data = (hduobject.data*bscale) + bzero

@cvalenzu
Copy link
Contributor

cvalenzu commented Jun 5, 2017

Function name change to loadFITS_PrimaryOnly

@maray
Copy link
Member

maray commented Jun 7, 2017

Why this function exists in the first place? The code is quite duplicated from HDU_to_NDData, so why not merging them?

@maray maray self-assigned this Jun 7, 2017
@capgadsx
Copy link
Member Author

capgadsx commented Jun 7, 2017

The main difference is in how we open the FITS file, we can merge them to avoid duplicated code.

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

No branches or pull requests

3 participants