From 989f9f2ee9af5dec4070ed8f39e8d9101e72c90f Mon Sep 17 00:00:00 2001 From: HappyZ Date: Mon, 5 Feb 2018 13:33:35 -0600 Subject: [PATCH] bug fix --- libMeasurement.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libMeasurement.py b/libMeasurement.py index e4e46ec..69b1b41 100755 --- a/libMeasurement.py +++ b/libMeasurement.py @@ -220,7 +220,7 @@ def main(): # default=(0.9376, 558.0551), # indoor default=(0.8927, 553.3157), # outdoor type=float, - help="calibrate final result" + help="calibrate calibration params (pre-defined outdoor by default)" ) p.add_argument( '--filepath', '-f', @@ -258,13 +258,13 @@ def main(): "(will be ignored if `cali` is being used)" ) ) - if args['indoor'] and args['cali'] == (0.8927, 553.3157): - args['cali'] = (0.9376, 558.0551) try: args = vars(p.parse_args()) except Exception as e: print(str(e)) sys.exit() + if args['indoor'] and args['cali'] == (0.8927, 553.3157): + args['cali'] = (0.9376, 558.0551) args['time_of_exec'] = int(time.time()) # rename file path by adding time of exec if args['filepath']: