diff options
author | Gary E. Miller <gem@rellim.com> | 2018-09-21 17:51:19 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-09-21 17:55:06 -0700 |
commit | 04d1b1b0ae337b09d0677e6578a7d877031c75cb (patch) | |
tree | 15cd0fc4892d74cad5db02934ace025a1070c5c9 /gpsprof | |
parent | 3480625b7ef19161ba7f96cd20b5dd9f93750540 (diff) | |
download | gpsd-04d1b1b0ae337b09d0677e6578a7d877031c75cb.tar.gz |
gpsfake, gpsfake, gpsprof: pep8 tweaks.
Diffstat (limited to 'gpsprof')
-rwxr-xr-x | gpsprof | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -185,7 +185,7 @@ class stats(object): else: # must be float sum_squares = [(x - self.mean) ** 2 for x in fixes] - sigma = math.sqrt(sum(sum_squares) /( len(fixes) -1)) + sigma = math.sqrt(sum(sum_squares) / (len(fixes) - 1)) for fix in fixes: m3 += pow(fix - sigma, 3) m4 += pow(fix - sigma, 4) @@ -1046,6 +1046,7 @@ usage: gpsprof [OPTION]... [server[:port[:device]]] ''' % ("|".join([x.name for x in formatters]))) sys.exit(0) + if __name__ == '__main__': try: (options, arguments) = getopt.getopt(sys.argv[1:], |