From d22c62a328bd06f3c7ce3eb1d9a309d73b4a96ff Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Wed, 26 Jul 2017 17:24:22 -0700 Subject: gpsprof: lint does not like mixing types for a variable. Make alt_sum always a float. --- gpsprof | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gpsprof') diff --git a/gpsprof b/gpsprof index a4e58fd6..2e3ccb0e 100755 --- a/gpsprof +++ b/gpsprof @@ -228,7 +228,7 @@ class spaceplot(plotter): self.centroid[:2], self.fixes[int(len(self.fixes) * 0.95)][:2]) cep99_meters = gps.misc.EarthDistance( self.centroid[:2], self.fixes[int(len(self.fixes) * 0.99)][:2]) - alt_sum = 0 + alt_sum = 0.0 alt_num = 0 alt_fixes = [] lon_max = -9999 -- cgit v1.2.1