-
Notifications
You must be signed in to change notification settings - Fork 153
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
Glue 0.7.1 cannot handle FITS with missing END card on Windows 7 #915
Conversation
This used to have a fix that I accidentally undid in #825 - attached code to fix back |
c065cb5
to
91831c5
Compare
@pllim - could you confirm that this changes fixes the issue on your Windows machine? |
@@ -176,7 +176,7 @@ def casalike_cube(filename, **kwargs): | |||
from astropy.io import fits | |||
|
|||
result = Data() | |||
with fits.open(filename, **kwargs) as hdulist: | |||
with fits.open(filename, ignore_missing_end=True, **kwargs) as hdulist: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just an observation -- If ignore_missing_end
is also provided via kwargs
, there is going to be conflict.
I don't have access to the Windows laptop today; I will test this on Monday. Thanks! |
91831c5
to
2639e39
Compare
@astrofrog , so it turns out I originally failed to open my files because they were corrupted. After I re-downloaded them, they can open fine on Windows even without this fix. However, with this fix, I got a more meaningful So, it is up to you whether you still want to apply this or not. I apologize for the confusion! |
…s only if it’s not already present.
a384f3b
to
8a5e96b
Compare
The travis failure is unrelated |
Glue 0.7.1 cannot handle FITS with missing END card on Windows 7
I have Glue 0.7.1 on Windows 7 (Astropy version there is 1.1.2). When I try to open test image, L1448_13CO.fits, provided by @astrofrog, I get the following traceback:
I did not see this error on Linux. And others who used the same file on Mac also did not mention seeing this error. On Windows, explicitly choosing "FITS file" from file type also did not help.
I also failed to load w5.fits, w5_psc.vot, and chandra_events.fits on Windows.