From 4f236a80fe16ad8743cc2dc4bb322c4c3cd0edaf Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 8 Jul 2013 01:35:10 +0000 Subject: [PATCH] [ck2cti] Fix reading empty THERMO sections --- interfaces/python/ck2cti.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interfaces/python/ck2cti.py b/interfaces/python/ck2cti.py index 2e0e33a6b..056718505 100755 --- a/interfaces/python/ck2cti.py +++ b/interfaces/python/ck2cti.py @@ -1404,7 +1404,8 @@ class Parser(object): elif contains(line, 'THERM'): # List of thermodynamics (hopefully one per species!) line, comment = readline() - TintDefault = float(line.split()[1]) + if not contains(line, 'END'): + TintDefault = float(line.split()[1]) thermo = '' while not contains(line, 'END'): if len(line) >= 80 and line[79] in ['1', '2', '3', '4']: