banzai icon indicating copy to clipboard operation
banzai copied to clipboard

reduce_single_frame does not work

Open griffin-h opened this issue 2 years ago • 1 comments

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.

griffin-h avatar Nov 01 '22 18:11 griffin-h

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.

dsand avatar Dec 08 '22 04:12 dsand