CLose file after writing

master
Dan Howe 5 years ago
parent 6a867e0b27
commit 089dc654d6

@ -27,7 +27,7 @@ import math
START_TIME = '2020-01-01' START_TIME = '2020-01-01'
END_TIME = '2020-12-31' END_TIME = '2020-12-31'
OUTPUT_NAME = 'levels.csv' OUTPUT_NAME = 'levels.csv'
MSL = 0.9952 MSL = 0.9952
harm = {} harm = {}
speed = 0 speed = 0
@ -258,3 +258,5 @@ while (t < end_time):
x.append(t) x.append(t)
y.append(z) y.append(z)
t = t + time_step t = t + time_step
F.close()

Loading…
Cancel
Save