aboutsummaryrefslogtreecommitdiffstats
path: root/astro/oskar
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-02-06 16:38:28 +0800
committerAaron LI <aly@aaronly.me>2018-02-06 16:38:28 +0800
commit771c9e9d0cb66cc6253048b5abee45a846d0c25c (patch)
tree6d90f5f242f8d222af229238107a62c9cc81e83e /astro/oskar
parentc87ade2c954e4f01c5f1c06d1b39d4dab0bb11a9 (diff)
downloadatoolbox-771c9e9d0cb66cc6253048b5abee45a846d0c25c.tar.bz2
Also print current working directory (CWD
Diffstat (limited to 'astro/oskar')
-rwxr-xr-xastro/oskar/run_oskar.py1
-rwxr-xr-xastro/oskar/wsclean.py1
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 <<<")