From edcc9c59fd6f8eb39a3164f388fbb9025e913af7 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Wed, 26 Jun 2019 17:57:43 -0400 Subject: [PATCH] [Input] Fix CTI to YAML conversion of phases with no elements --- interfaces/cython/cantera/cti2yaml.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interfaces/cython/cantera/cti2yaml.py b/interfaces/cython/cantera/cti2yaml.py index a3760eecd..a0d64bfa2 100644 --- a/interfaces/cython/cantera/cti2yaml.py +++ b/interfaces/cython/cantera/cti2yaml.py @@ -1087,7 +1087,8 @@ class phase: def get_yaml(self, out): out['name'] = self.name out['thermo'] = self.thermo_model - out['elements'] = FlowList(self.elements.split()) + if self.elements: + out['elements'] = FlowList(self.elements.split()) if len(self.species) == 1 and self.species[0][0] == 'species': # all local species