LCOGT / banzai

Beautiful Algorithms to Normalize Zillions of Astronomical Images
GNU General Public License v3.0
29 stars 18 forks source link

reduce_single_frame does not work #350

Open griffin-h opened 2 years ago

griffin-h commented 2 years ago

main.reduce_single_frame always crashes on this line:

if not image_utils.image_can_be_processed(fits_utils.get_primary_header(runtime_context.path), runtime_context):

fits_utils.get_primary_header returns an astropy.io.fits.Header object, but image_utils.image_can_be_processed expects an ObservationFrame object for the image argument, because it checks image.obstype, for example.

dsand commented 1 year ago

We just ran into this problem tonight (sans Griffin) while trying to implement banzai on the Mont4K camera (a single chip, two amp imager) on the Kuiper 1.5m.