aboutsummaryrefslogtreecommitdiffstats
path: root/astro/oskar
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-11-24 21:06:08 +0800
committerAaron LI <aly@aaronly.me>2017-11-24 21:06:08 +0800
commit20a3fa017363aa69778e1dc05d5deb91a6f1293a (patch)
tree4c4195349c3a0bc8f05819686a85336d16708dba /astro/oskar
parentfddd14eed81fce804e91ead0a546aa9d6256cb09 (diff)
downloadatoolbox-20a3fa017363aa69778e1dc05d5deb91a6f1293a.tar.bz2
astro/ps2d.py: Update logging format
Also close the logfile for astro/oskar/wsclean.py
Diffstat (limited to 'astro/oskar')
-rwxr-xr-xastro/oskar/wsclean.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/astro/oskar/wsclean.py b/astro/oskar/wsclean.py
index 76e9229..511bb70 100755
--- a/astro/oskar/wsclean.py
+++ b/astro/oskar/wsclean.py
@@ -206,6 +206,9 @@ def main():
# Remove the output "-image" since it is identical to "-dirty"
os.remove(nameprefix+"-image.fits")
+ if logfile:
+ logfile.close()
+
if __name__ == "__main__":
main()