cti2yaml is missing release 2.5.1 for Matlab

144 views
Skip to first unread message

Alexandre Landry-Blais

unread,
Nov 4, 2021, 9:47:31 AM11/4/21
to Cantera Users' Group
Hi all,
Just installed release 2.5.1 for Matlab, and realized that the cti2yaml.m function is missing! ck2cti is still there, but trying to load *.cti mechanisms throws the following error : 

Solution('gri30.cti')

CanteraError thrown by call_ctml_writer:
Error converting input file "C:\Program Files\Cantera\data/gri30.cti" to CTML.
Python command was: 'C:\Python37\python.exe'
The exit code was: 1

Loading *.XML mechanisms works fine. For now I'll just revert back to release 2.4. Is it planned to have the cti2yaml function available for Matlab users?

Alex

Bryan Weber

unread,
Nov 4, 2021, 9:49:52 AM11/4/21
to Cantera Users' Group
Hi Alex,

This was a deliberate omission from the installer. The reason is that the ck2cti Matlab script just calls the Python script anyways, so we felt there wasn't a need for the indirection and you should just use the command line version of cti2yaml. Apologies that this isn't documented!

However, the error you show should not be affected by whether or not you're using Cantera 2.4 or 2.5. The error points to something wrong with your Python/Cantera installation, but that's not the complete stack trace, so it's hard to help any further.

Best,
Bryan

Alexandre Landry-Blais

unread,
Nov 5, 2021, 3:46:53 PM11/5/21
to Cantera Users' Group
Hi Bryan,

Thanks for the quick reply. I didn't realize the required packages had changed, installing them solved the issue. For using cti2yaml, what do you mean using the command line version?

Alex

Bryan Weber

unread,
Nov 5, 2021, 7:47:28 PM11/5/21
to Cantera Users' Group
You can use the command prompt on Windows to run the scripts. That'd be cmd.exe or Powershell, depending on what you're familiar with. Depending on how you installed the Python interface, you should be able to run

cti2yaml ....

right from that window and it will convert the files. You'll have to be in the same directory as the files, just like in Matlab.

Best,
Bryan

Reply all
Reply to author
Forward
0 new messages