From 9d47c8c2e59fe5701878ed0fd13baa58f901d762 Mon Sep 17 00:00:00 2001 From: jurjen93 Date: Fri, 18 Oct 2024 23:03:34 +0200 Subject: [PATCH] bug --- subtract/subtract_with_wsclean.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subtract/subtract_with_wsclean.py b/subtract/subtract_with_wsclean.py index d3a4a89..be8faea 100644 --- a/subtract/subtract_with_wsclean.py +++ b/subtract/subtract_with_wsclean.py @@ -18,6 +18,8 @@ def fast_copy(filein, dest): """ + Fast copy of folders + Args: filein: file in dest: out destination @@ -889,7 +891,7 @@ def main(): # set subtract object subpred = SubtractWSClean(mslist=args.mslist if not args.scratch_toil else [ms.split('/')[-1] for ms in args.mslist], - region=args.region if not args.scratch_toil else args.region.split('/')[-1], + region=args.region if not args.scratch_toil or args.region is None else args.region.split('/')[-1], localnorth=not args.no_local_north, inverse=args.inverse)