From 6c8adf47b3286d974312821795f8bea0b484bf13 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 16 Sep 2019 18:02:50 -0400 Subject: [PATCH] [Input] Normalize YAML reaction equation for Chebyshev reactions Fix the reaction equation to always include the (+M). Previously, if the (+M) was omitted, an invalid reaction string was generated. --- interfaces/cython/cantera/ck2yaml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/cython/cantera/ck2yaml.py b/interfaces/cython/cantera/ck2yaml.py index 39df856bf..30dd39edc 100644 --- a/interfaces/cython/cantera/ck2yaml.py +++ b/interfaces/cython/cantera/ck2yaml.py @@ -498,7 +498,7 @@ class Chebyshev(KineticsModel): self.quantity_units = quantity_units def reaction_string_suffix(self, species): - return ' (+{})'.format(species) + return ' (+{})'.format(species if species else 'M') def reduce(self, output): output['type'] = 'Chebyshev'