#NEWLINE# def process_images( self , fits_headers = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , **kwargs ) : #NEWLINE# #INDENT# ' Process the raw data images\n\n            Args:\n                fits_headers{dict, optional}:   Key/value headers for the fits file.\n            ' #NEWLINE# assert self . images_exist , self . logger . warning ( 'No images to process' ) #NEWLINE# start_time = current_time ( ) #NEWLINE# self . logger . debug ( 'Processing images: {}' . format ( self . images ) ) #NEWLINE# for ( cam_name , img_info ) in self . images . items ( ) : #NEWLINE# #INDENT# self . logger . debug ( 'Cam {} Info {}' . format ( cam_name , img_info ) ) #NEWLINE# fits_headers [ 'detname' ] = img_info . get ( 'camera_id' , '' ) #NEWLINE# kwargs [ 'primary' ] = img_info . get ( 'primary' , False ) #NEWLINE# kwargs [ 'make_pretty' ] = img_info . get ( 'primary' , False ) #NEWLINE# processsed_info = images . process_cr2 ( img_info . get ( 'img_file' ) , fits_headers = fits_headers , ** kwargs ) #NEWLINE# self . logger . debug ( 'Processed image info: {}' . format ( start_time ) ) #NEWLINE# img_info . update ( processsed_info ) #NEWLINE# self . logger . debug ( 'Done processing' ) #NEWLINE# #UNINDENT# end_time = current_time ( ) #NEWLINE# self . logger . debug ( 'Processing time: {}' . format ( ( end_time - start_time ) . to ( u . s ) ) )