diff options
author | Aaron LI <aly@aaronly.me> | 2018-02-06 16:38:28 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-02-06 16:38:28 +0800 |
commit | 771c9e9d0cb66cc6253048b5abee45a846d0c25c (patch) | |
tree | 6d90f5f242f8d222af229238107a62c9cc81e83e | |
parent | c87ade2c954e4f01c5f1c06d1b39d4dab0bb11a9 (diff) | |
download | atoolbox-771c9e9d0cb66cc6253048b5abee45a846d0c25c.tar.bz2 |
Also print current working directory (CWD
-rwxr-xr-x | astro/oskar/run_oskar.py | 1 | ||||
-rwxr-xr-x | astro/oskar/wsclean.py | 1 |
2 files changed, 2 insertions, 0 deletions
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 <<<") |