From c87ade2c954e4f01c5f1c06d1b39d4dab0bb11a9 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 5 Feb 2018 14:15:52 +0800 Subject: astro/wsclean.py: update parameters against w.r.t. WSClean 2.5 --- astro/oskar/wsclean.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'astro/oskar') diff --git a/astro/oskar/wsclean.py b/astro/oskar/wsclean.py index 5473764..a3601e5 100755 --- a/astro/oskar/wsclean.py +++ b/astro/oskar/wsclean.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# Copyright (c) 2017 Aaron LI +# Copyright (c) 2017-2018 Aaron LI # MIT license # # Create image from OSKAR simulated visibility data using `WSClean`. @@ -42,7 +42,7 @@ def wsclean(args, dryrun=False, logfile=None): """ tmpdir = tempfile.TemporaryDirectory() cmd = [ - "wsclean", "-tempdir", tmpdir.name, + "wsclean", "-temp-dir", tmpdir.name, ] + [str(arg) for arg in args] # NOTE: Convert all arguments to strings printlog("CMD: %s" % " ".join(cmd), logfile=logfile) if dryrun: @@ -193,7 +193,7 @@ def main(): if args.save_uv: cmdargs += ["-saveuv"] if args.circular_beam: - cmdargs += ["-circularbeam"] + cmdargs += ["-circular-beam"] if args.beam_size: cmdargs += ["-beamsize", args.beam_size] if args.wlayers: -- cgit v1.2.2