From a085bc1f436551e5bbb322550f64562966cb0017 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 16 Sep 2019 18:05:30 -0400 Subject: [PATCH] [Input] Check that all species have thermo before writing YAML file --- interfaces/cython/cantera/ck2yaml.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/interfaces/cython/cantera/ck2yaml.py b/interfaces/cython/cantera/ck2yaml.py index 30dd39edc..d41a3bcbe 100644 --- a/interfaces/cython/cantera/ck2yaml.py +++ b/interfaces/cython/cantera/ck2yaml.py @@ -1919,6 +1919,11 @@ class Parser: # Write the individual species data all_species = list(self.species_list) + for species in all_species: + if species.composition is None: + raise InputError('No thermo data found for ' + 'species {!r}'.format(species.label)) + for surf in self.surfaces: all_species.extend(surf.species_list) speciesMap = BlockMap([('species', all_species)])