From 78c9c9c0a5997183946cbdb97dcf614a6585e4ac Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Fri, 20 Jun 2014 19:41:14 +0000 Subject: [PATCH] [CTI] Allow omitting third body in Chebyshev reaction equations Cherry-pick of trunk r2930. --- interfaces/python/ctml_writer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/interfaces/python/ctml_writer.py b/interfaces/python/ctml_writer.py index d7e3adef7..8ede37bf5 100644 --- a/interfaces/python/ctml_writer.py +++ b/interfaces/python/ctml_writer.py @@ -1475,8 +1475,9 @@ class chebyshev_reaction(reaction): self.coeffs = coeffs # clean up reactant and product lists - del self._r['(+'] - del self._p['(+'] + if '(+' in self._r: + del self._r['(+'] + del self._p['(+'] if 'M)' in self._r: del self._r['M)'] del self._p['M)']