Skip to content

Commit

Permalink
[ctml_writer] Fix handling of third body names containing parentheses
Browse files Browse the repository at this point in the history
Replace the heuristic used to remove the third body terms from the
reactant and product lists to handle species names that include
parentheses.
  • Loading branch information
speth committed Jul 12, 2017
1 parent 6d591b8 commit 44b24ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interfaces/cython/cantera/ctml_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,7 @@ def clean_up_reactants_products(self):
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 "
Expand Down

0 comments on commit 44b24ca

Please sign in to comment.