[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.
This commit is contained in:
parent
6d591b82ef
commit
44b24ca873
1 changed files with 1 additions and 1 deletions
|
|
@ -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 "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue