Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue cantera version #47

Open
GontzalLopez opened this issue Jan 12, 2024 · 1 comment
Open

Issue cantera version #47

GontzalLopez opened this issue Jan 12, 2024 · 1 comment

Comments

@GontzalLopez
Copy link

GontzalLopez commented Jan 12, 2024

Hi, I would like to parse a cantera mechanism. My current cantera version is 3.0.0, so it seems that pyjac only works with the older version 2.3.0 as the following message appears when executing the first command:

python3 -m pyjac --lang c --input grimech30.dat --thermo thermo30.dat --last_species N2

Parsing of Cantera mechanisms requires at least version 2.3.0 in order to access species thermo properties...
Detected version is only 3.0.0

@skyreflectedinmirrors
Copy link
Collaborator

Probably this line to blame:

if int(version[0]) < 2 or int(version[1]) < 3:

Try maybe:

if int(version[0]) < 2 or (int(version[0]) < 2 and int(version[1]) < 3):

It's been many years since I've used Cantera at this point however, so hopefully the 3.0 release still works w/o issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants