Mercurial > hg > cfcfd3
changeset 2575:5166ba3eefb2
app/pitot: fixed small bug in pitot_input_utils.py
I had an incorrect logic statement where the driver details
were printed out. It didn't show itself in normal operation,
but when a custom driver was used, it popped out. Fixed now.
author | Chris James <c.james4@uq.edu.au> |
---|---|
date | Wed, 15 Aug 2018 13:59:21 +1000 |
parents | 776854027e66 |
children | 4a2134f6283c |
files | app/pitot/pitot.py app/pitot/pitot_output_utils.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/app/pitot/pitot.py Fri Jun 08 16:01:24 2018 +0100 +++ b/app/pitot/pitot.py Wed Aug 15 13:59:21 2018 +1000 @@ -314,7 +314,7 @@ from pitot_output_utils import * from pitot_area_ratio_check import * -VERSION_STRING = "5-Jun-2018" +VERSION_STRING = "15-Aug-2018" DEBUG_PITOT = False
--- a/app/pitot/pitot_output_utils.py Fri Jun 08 16:01:24 2018 +0100 +++ b/app/pitot/pitot_output_utils.py Wed Aug 15 13:59:21 2018 +1000 @@ -135,7 +135,7 @@ print facility_used txt_output.write(facility_used + '\n') - if cfg['solver'] == ['eq','pg-eq']: + if cfg['solver'] in ['eq','pg-eq']: if hasattr(states['s4'], 'reactants'): driver_gas_used = 'Driver gas is {0} (by {1}).'.format(states['s4'].reactants, states['s4'].outputUnits) elif not hasattr(states['s4'], 'reactants') and cfg['piston'] in ['Sangdi-1.8MPa', 'sangdi-1.8MPa','Sangdi-2.2MPa', 'sangdi-2.2MPa'] and cfg['facility'] != 'custom':