From 11c8aaf190471313e689c4efe2dccdc73a624247 Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Tue, 3 Dec 2019 17:03:30 +1100 Subject: [PATCH] Beautify with yapf --- SydneyTide-python.py | 405 ++++++++++++++++++++++--------------------- 1 file changed, 204 insertions(+), 201 deletions(-) diff --git a/SydneyTide-python.py b/SydneyTide-python.py index 90ac486..c1ff4b9 100644 --- a/SydneyTide-python.py +++ b/SydneyTide-python.py @@ -25,237 +25,240 @@ from pylab import * # # the harmonics included below in the python code were provided directly to WRL from BOM. +harm = {} +speed = 0 +amp = 1 +lag = 2 -harm={} -speed=0 -amp=1 -lag=2 def readlinenocomm(F): - l=F.readline() - while l[0]=='#': - l=F.readline() - return l + l = F.readline() + while l[0] == '#': + l = F.readline() + return l + # -H=open("HARMONIC","r") -l=readlinenocomm(H) -numconstits=int(l) +H = open("HARMONIC", "r") +l = readlinenocomm(H) +numconstits = int(l) -print("Number of Constituents = ",numconstits) +print("Number of Constituents = ", numconstits) # Read in the constituent speeds -constitspeed={} -i=0 -while i