Skip to content

Commit

Permalink
copy/delete
Browse files Browse the repository at this point in the history
  • Loading branch information
jurjen93 committed Oct 18, 2024
1 parent 34bb934 commit 46dfa2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subtract/subtract_with_wsclean.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 46dfa2f

Please sign in to comment.