From 2f7e05040cd4d70f89aa7583235ad177e572526b Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 15 Jun 2015 16:47:54 -0400 Subject: [PATCH] [ck2cti] Improve handling of single T-range thermo data --- interfaces/cython/cantera/ck2cti.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/interfaces/cython/cantera/ck2cti.py b/interfaces/cython/cantera/ck2cti.py index 1539c5969..d19f6cc05 100644 --- a/interfaces/cython/cantera/ck2cti.py +++ b/interfaces/cython/cantera/ck2cti.py @@ -965,6 +965,13 @@ class Parser(object): for i,j,k in [(2,30,45), (2,45,60), (2,60,75), (3,0,15), (3,15,30), (3,30,45), (3,45,60)]] + # Duplicate the valid set of coefficients if only one range is provided + if all(c == 0 for c in coeffs_low) and Tmin == Tint: + coeffs_low = coeffs_high + elif all(c == 0 for c in coeffs_high) and Tmax == Tint: + coeffs_high = coeffs_low + + composition = self.parseComposition(lines[0][24:44], 4, 5) # Non-standard extended elemental composition data may be located beyond