From 771c9e9d0cb66cc6253048b5abee45a846d0c25c Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 6 Feb 2018 16:38:28 +0800 Subject: Also print current working directory (CWD --- astro/oskar/run_oskar.py | 1 + astro/oskar/wsclean.py | 1 + 2 files changed, 2 insertions(+) (limited to 'astro/oskar') diff --git a/astro/oskar/run_oskar.py b/astro/oskar/run_oskar.py index e2e8653..66b6ca3 100755 --- a/astro/oskar/run_oskar.py +++ b/astro/oskar/run_oskar.py @@ -64,6 +64,7 @@ def run_oskar(configfile, model, freq, vis_ms, vis_oskar=None, print("-------------------------------------------------------------") print("Simulating %s @ %.2f [MHz] ..." % (model, freq)) cmd = [simulator, configfile] + print("CWD: %s" % os.getcwd()) print("CMD: %s" % " ".join(cmd)) if dryrun: print("Dry run mode -> DONE!") diff --git a/astro/oskar/wsclean.py b/astro/oskar/wsclean.py index a3601e5..9924d3b 100755 --- a/astro/oskar/wsclean.py +++ b/astro/oskar/wsclean.py @@ -44,6 +44,7 @@ def wsclean(args, dryrun=False, logfile=None): cmd = [ "wsclean", "-temp-dir", tmpdir.name, ] + [str(arg) for arg in args] # NOTE: Convert all arguments to strings + printlog("CWD: %s" % os.getcwd()) printlog("CMD: %s" % " ".join(cmd), logfile=logfile) if dryrun: print(">>> DRY RUN MODE <<<") -- cgit v1.2.2