From 44b24ca873b55085770563cd4f0b63a5c712412e Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Wed, 12 Jul 2017 00:03:28 -0400 Subject: [PATCH] [ctml_writer] Fix handling of third body names containing parentheses Replace the heuristic used to remove the third body terms from the reactant and product lists to handle species names that include parentheses. --- interfaces/cython/cantera/ctml_writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/cython/cantera/ctml_writer.py b/interfaces/cython/cantera/ctml_writer.py index d9a9da365..64a814117 100644 --- a/interfaces/cython/cantera/ctml_writer.py +++ b/interfaces/cython/cantera/ctml_writer.py @@ -1400,7 +1400,7 @@ class pdep_reaction(reaction): del self._p['m)'] else: for r in list(self._r.keys()): - if r[-1] == ')' and r.find('(') < 0: + if r[-1] == ')' and r in self._p: species = r[:-1] if self._eff: raise CTI_Error("In reaction '{0}', explcit third body "