ck2cti.py raises an exception when transport data for some species is missing
This commit is contained in:
parent
6f5a38a2ba
commit
0ebba86bc7
1 changed files with 5 additions and 0 deletions
|
|
@ -1585,6 +1585,11 @@ def convertMech(inputFile, thermoFile=None,
|
|||
lines = open(transportFile).readlines()
|
||||
parseTransportData(lines, species)
|
||||
|
||||
# Transport validation: make sure all species have transport data
|
||||
for s in species:
|
||||
if s.transport is None:
|
||||
raise InputParseError("No transport data for species '{0}'.".format(s))
|
||||
|
||||
if not outName:
|
||||
outName = os.path.splitext(inputFile)[0] + '.cti'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue