[ck2cti] Allow the case where a reaction section is specified but empty
This commit is contained in:
parent
d46bc31d2c
commit
947a262d90
1 changed files with 3 additions and 1 deletions
|
|
@ -1580,7 +1580,9 @@ class Parser(object):
|
|||
kineticsList.append(kinetics)
|
||||
commentsList.append(comments)
|
||||
|
||||
if kineticsList[0] == '' and commentsList[-1] == '':
|
||||
if not kineticsList:
|
||||
pass
|
||||
elif kineticsList[0] == '' and commentsList[-1] == '':
|
||||
# True for mechanism files generated from RMG-Py
|
||||
kineticsList.pop(0)
|
||||
commentsList.pop(-1)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue