You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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().
The text was updated successfully, but these errors were encountered:
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().
The text was updated successfully, but these errors were encountered: