Print error message when missing species thermo
This commit is contained in:
parent
d456284b8e
commit
126dc9e04c
1 changed files with 3 additions and 0 deletions
|
|
@ -81,6 +81,7 @@ class Species(object):
|
|||
self.thermo = None
|
||||
self.transport = None
|
||||
self.note = None
|
||||
self.composition = None
|
||||
|
||||
def __str__(self):
|
||||
return self.label
|
||||
|
|
@ -1648,6 +1649,8 @@ def writeCTI(species,
|
|||
for s in species:
|
||||
if not s.transport:
|
||||
haveTransport = False
|
||||
if s.composition is None:
|
||||
raise ChemkinError('No thermo data found for species: {0!r}'.format(s.label))
|
||||
elements.update(s.composition)
|
||||
speciesNameLength = max(speciesNameLength, len(s.label))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue