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

FITSwriter fails on files input with AMCReader #16

Open
amcody opened this issue Jul 12, 2018 · 0 comments
Open

FITSwriter fails on files input with AMCReader #16

amcody opened this issue Jul 12, 2018 · 0 comments

Comments

@amcody
Copy link

amcody commented Jul 12, 2018

In the k2io.py code, there are a few lines at the end which are problematic for 'AMC' format light curve files. The issue is here:
for h in (data.primary_header,hdu.header):
There is no data.primary_header for 'AMC' files, and so the code is unable to add the 'origin', 'program', and 'date' keywords to it, and it crashes. I fixed this by adding a try - except to test whether the data.primary_header exists, but you may wish to fix it some other way.

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

1 participant