aboutsummaryrefslogtreecommitdiffstats
path: root/astro/oskar
diff options
context:
space:
mode:
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()