From 46dfa2f12395b4a642244ffbc95b64c7e62347cf Mon Sep 17 00:00:00 2001 From: jurjen93 Date: Fri, 18 Oct 2024 21:14:47 +0200 Subject: [PATCH] copy/delete --- subtract/subtract_with_wsclean.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subtract/subtract_with_wsclean.py b/subtract/subtract_with_wsclean.py index 71f91eb..b49d274 100644 --- a/subtract/subtract_with_wsclean.py +++ b/subtract/subtract_with_wsclean.py @@ -851,7 +851,7 @@ def main(): command += [f'rsync -a --no-perms {dataset} {runpath}' for dataset in args.mslist] # when running with scratch + toil, the next commands are to clean up the tmp* files command += ['rm *-model*.fits', f'rm -rf {args.model_image_folder}'] - # command += [f'rm -rf {dataset}' for dataset in args.mslist] + command += [f'rm -rf {dataset}' for dataset in args.mslist] os.system('&&'.join(command)) outpath = os.getcwd() os.chdir(runpath) @@ -935,7 +935,7 @@ def main(): print(f'DONE: See output --> {dirname.replace("Dir","facet_")}-*.ms') elif args.scratch_toil: # copy back the subtracted MS to the output path - for ms in subpred.mslist: os.system(f'rsync -a --no-perms {ms} {outpath}') + for ms in subpred.mslist: os.system(f'cp -r {ms} {outpath}') os.system(f'cp *.log {outpath}') os.chdir(outpath) else: