Skip to content

Broken extract_submechanism.py example #821

@ischoegl

Description

@ischoegl

System information

  • Cantera version: 2.5.0a4 (current master / commit c16c4b0)
  • OS: Ubuntu
  • Python/MATLAB version: Python 3.6.8

Expected behavior

The example kinetics/extract_submechanism.py runs.

Actual behavior

In [1]: %run extract_submechanism.py
Species: H2, H, O, O2, OH, H2O, HO2, H2O2, C, CO, CO2, N2
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
/src/build/python/cantera/examples/kinetics/extract_submechanism.py in <module>()
     37 
     38 # Filter reactions, keeping only those that only involve the selected species
---> 39 all_reactions = ct.Reaction.listFromFile('gri30.yaml')
     40 reactions = []
     41 

interfaces/cython/cantera/reaction.pyx in cantera._cantera.Reaction.listFromFile()

ValueError: A Kinetics object is required.

To Reproduce

See above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions