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

Cannot write quantities to file #8

Open
navarete opened this issue Oct 28, 2022 · 0 comments
Open

Cannot write quantities to file #8

navarete opened this issue Oct 28, 2022 · 0 comments
Assignees
Labels

Comments

@navarete
Copy link
Contributor

navarete commented Oct 28, 2022

Somehow, for the bias and object data processing, the data is been saved with some quantities that cannot be saved as a FITS file.
The solution was to change lines 424 and 482 of sami.py from
[424] pyfits.writeto(output_obj_file, data, header)
[482] pyfits.writeto(output_zero_file, data, header)
to
[424] pyfits.writeto(output_obj_file, data.value, header=header)
[482] pyfits.writeto(output_zero_file, data.value, header=header)

Note that the header info is now a parameter to set on pyfits.writeto().

@navarete navarete self-assigned this Jan 4, 2023
@navarete navarete added the bug label Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant