[ck2cti] Improve handling of single T-range thermo data
This commit is contained in:
parent
b25167e4b9
commit
2f7e05040c
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue