def restor(mapname, beamname, modelname, imname): os.system('rm -r ' + imname) restor = mirexec.TaskRestore() restor.beam = beamname restor.map = mapname restor.model = modelname restor.out = imname restor.snarf()
def restores(settings, fname, mode='residual'): restor = mirexec.TaskRestore() restor.model = settings.model restor.map = settings.map restor.beam = settings.beam restor.out = settings.res restor.mode = mode tout = restor.snarf() acos.taskout(restor, tout, fname)
def restorim(settings, fname, mode='clean'): restor = mirexec.TaskRestore() restor.model = settings.model restor.map = settings.map restor.beam = settings.beam restor.out = settings.image restor.mode = mode tout = restor.snarf() acos.taskout(restor, tout, fname)
def restor(vis, i): restor = mirexec.TaskRestore() restor.model = vis.replace('.uv', '.model' + str(i)) restor.beam = vis.replace('.uv', '.beam' + str(i)) restor.map = vis.replace('.uv', '.map' + str(i)) restor.out = vis.replace('.uv', '.image' + str(i)) tout = restor.snarf() acos.taskout(restor, tout, 'restor.txt') restor.mode = 'residual' restor.out = vis.replace('.uv', '.res' + str(i)) tout = restor.snarf() acos.taskout(restor, tout, 'restor.txt')
def restor(params, mode='clean'): restor = mirexec.TaskRestore() restor.beam = params.beam restor.map = params.map restor.model = params.model if mode != 'clean': restor.out = params.residual restor.mode = 'residual' else: restor.out = params.image restor.mode = 'clean' shrun('rm -r ' + restor.out) tout = restor.snarf()
def restor(params, mode='clean'): restor = mirexec.TaskRestore()