From 089dc654d6489579bab3af59c24e8a4d1ad2fb5c Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Wed, 4 Dec 2019 08:53:12 +1100 Subject: [PATCH] CLose file after writing --- sydney_tides.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sydney_tides.py b/sydney_tides.py index 151b098..aea3f94 100644 --- a/sydney_tides.py +++ b/sydney_tides.py @@ -27,7 +27,7 @@ import math START_TIME = '2020-01-01' END_TIME = '2020-12-31' OUTPUT_NAME = 'levels.csv' -MSL = 0.9952 +MSL = 0.9952 harm = {} speed = 0 @@ -258,3 +258,5 @@ while (t < end_time): x.append(t) y.append(z) t = t + time_step + +F.close()