Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Cython/Examples] Fix extract_submechanism example
The Reaction.listFromFile() method requires a Kinetics instance when reading a YAML file. In this case, the appropriate Kinetics instance could be created by Solution('gri30.yaml'). Since we'd have to create that object anyways to be able to use Reaction.listFromFile(), we might as well use the Solution.reactions() method, which returns the same list as Reaction.listFromFile() for this case where the species definitions are in the same file as the reaction definitions. Fixes Cantera#821, problem introduced in 1866e35
- Loading branch information