def run_flat_response(metadata, prev_suffix, curr_suffix, mode='all'): # now fit the desired style of response function print 'Generating flatfield response function' if mode == 'all': pywifes.wifes_2dim_response(super_dflat_mef, super_tflat_mef, flat_resp_fn, wsol_fn=wsol_out_fn) elif mode == 'dome': pywifes.wifes_response_poly(super_dflat_mef, flat_resp_fn, wsol_fn=wsol_out_fn) else: raise ValueError, 'Requested response mode not recognized' return
def run_flat_response(metadata, prev_suffix, curr_suffix, mode='all'): # now fit the desired style of response function print('Generating flatfield response function') if mode == 'all': pywifes.wifes_2dim_response(super_dflat_mef, super_tflat_mef, flat_resp_fn, wsol_fn=wsol_out_fn) elif mode == 'dome':