Mercurial > hg > cfcfd3
changeset 2567:83cbfc91198a
app/pitot: fixed a very small bug which I added with the last change
unless the guesses were used, it would crash! rookie mistake... fixed now
author | Chris James <c.james4@uq.edu.au> |
---|---|
date | Mon, 05 Mar 2018 11:13:17 +1000 |
parents | ef8989d00f86 |
children | b215560c5eed |
files | app/pitot/pitot.py app/pitot/pitot_condition_builder.py |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/app/pitot/pitot.py Fri Mar 02 12:30:16 2018 +1000 +++ b/app/pitot/pitot.py Mon Mar 05 11:13:17 2018 +1000 @@ -314,7 +314,7 @@ from pitot_output_utils import * from pitot_area_ratio_check import * -VERSION_STRING = "2-Mar-2018" +VERSION_STRING = "5-Mar-2018" DEBUG_PITOT = False
--- a/app/pitot/pitot_condition_builder.py Fri Mar 02 12:30:16 2018 +1000 +++ b/app/pitot/pitot_condition_builder.py Mon Mar 05 11:13:17 2018 +1000 @@ -10,7 +10,7 @@ """ -VERSION_STRING = "2-Mar-2018" +VERSION_STRING = "5-Mar-2018" import sys @@ -577,7 +577,7 @@ if variable in cfg: cfg.pop(variable) # we also need a second check here for when Vs2_lower is set to 'Vs1' a string input # which makes the code use the found Vs1 value as the Vs2_lower_limit - if cfg['cfg_original']['Vs2_lower'] == 'Vs1': + if 'Vs2_lower' in cfg['cfg_original'] and cfg['cfg_original']['Vs2_lower'] == 'Vs1': cfg['Vs2_lower'] = 'Vs1' # if the run failed, the guesses may have gone stupid, so reset them if the user had intial values... if not cfg['last_run_successful'] and variable in cfg['cfg_original']: