From 9634eb6829ea3c59a0d76de08f74181fd2614354 Mon Sep 17 00:00:00 2001 From: jurjen93 Date: Sun, 1 Sep 2024 00:06:37 +0200 Subject: [PATCH] rm-rf model --- subtract/subtract_with_wsclean.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subtract/subtract_with_wsclean.py b/subtract/subtract_with_wsclean.py index cd8f2955..be4e38df 100644 --- a/subtract/subtract_with_wsclean.py +++ b/subtract/subtract_with_wsclean.py @@ -819,7 +819,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 += [f'rm -rf {dataset}' for dataset in args.mslist] - command += ['rm *.fits', f'rm {args.model_image_folder}'] + command += ['rm *.fits', f'rm -rf {args.model_image_folder}'] os.system('&&'.join(command)) outpath = os.getcwd() os.chdir(runpath)