-
-
Notifications
You must be signed in to change notification settings - Fork 388
[MATLAB] Migrate to generated Clib #1997
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
base: main
Are you sure you want to change the base?
Conversation
Hi @ischoegl , I've started migrating the MATLAB interface to the generated Clib. It won't work with the generated Clib as-is due to the following two points:
On my local machine, I got around this issue by adding
MATLAB’s clibgen treats % as a comment character in MATLAB syntax. During parsing, the line is truncated at %, producing an unterminated string in the generated definectMatlab.m file and causing:
Affected functions: On my local machine, I got around this issue by removing the |
@ssun30 ... I pushed some fixes. I can compile things without needing to edit on my machine, and the toolbox loads, but the unit tests fail. Please ensure that you reset your local branch to this one to preserve my edits. |
2952e2c
to
c4ea8aa
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1997 +/- ##
==========================================
- Coverage 75.42% 73.15% -2.27%
==========================================
Files 454 466 +12
Lines 56554 56527 -27
Branches 9334 9333 -1
==========================================
- Hits 42654 41353 -1301
- Misses 10746 12029 +1283
+ Partials 3154 3145 -9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
c4ea8aa
to
0802ddd
Compare
Hi @ischoegl , I've fixed most of the issues with the unit tests. But five tests remain and I'll list each of them: sample
I didn't find the new equivalent function to |
The next sample is
The function signature for
|
sample
I didn't find the equivalent methods for |
The final errors are under
In the legacy clib, the
Now the corresponding methods in the generated clib lack those checks, and thus no error message was returned. |
Removed unnecessary edge case checks when editing library definitions.
generated clib.
standard class instead of hardcoded values.
0802ddd
to
63b6408
Compare
Changes proposed in this pull request
This PR updates the experimental MATLAB interface to use the auto-generated Cantera Clib (produced via
sourcegen
), replacing the previously manually written Clib.Specifically, this PR:
ctEditLibraryDefinitions
that was only required for the manually written Clib.Checklist
scons build
&scons test
) and unit tests address code coverage