-
-
Notifications
You must be signed in to change notification settings - Fork 381
[MATLAB] Create MLTBX toolbox file that can be published on File Exchange #1882
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
6768386
to
529e0e5
Compare
82f5f45
to
f9ff4b1
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1882 +/- ##
==========================================
- Coverage 74.28% 72.56% -1.72%
==========================================
Files 448 451 +3
Lines 55744 55869 +125
Branches 9190 9190
==========================================
- Hits 41411 40544 -867
- Misses 11232 12233 +1001
+ Partials 3101 3092 -9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the note in the downloadDependencies.m
file, I think this should probably wait until the setup is integrated into SCons and we figure out a release process.
opts.OutputFile = outputFile; | ||
opts.SupportedPlatforms.Win64 = true; | ||
opts.SupportedPlatforms.Glnxa64 = true; | ||
opts.SupportedPlatforms.Maci64 = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this support Apple Silicon?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MATLAB will run through Rosetta 2 on Apple Silicon for releases after R2020b so even though the option is called Maci64
it should support Apple Silicon.
Earlier releases will only support Mac with Intel processors.
907bc96
to
6513c20
Compare
@@ -66,10 +66,34 @@ | |||
echo "LD_PRELOAD=$LIB_STDCXX:$LIB_OPENBLAS:$LIB_LAPACK" >> $GITHUB_ENV | |||
- name: Set up MATLAB | |||
uses: matlab-actions/setup-matlab@718d4320188c73c86eb94ce76b553cbf89778487 # v2.5.0 | |||
- name: Set MATLAB search paths for tests and build MLTBX toolbox | |||
uses: matlab-actions/run-command@v2 |
Check failure
Code scanning / zizmor
action is not pinned to a hash (required by blanket policy) Error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address this CI error by using a hash.
190fe92
to
32f8f53
Compare
Hi @bryanwweber @ischoegl , I have been testing my MLTBX toolbox with local copies of cantera binaries and headers. Could we build those and host them somewhere similar to the PyPI package? |
Yes, we can do that, but I'd prefer to wait until this package is ready to be built. What's the status here? You have some failing checks still |
I second @bryanwweber’s opinion. I’d prefer to have a fully implemented test suite - there is a significant regression in the 1D code (#1722) that to my knowledge has not been addressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @ssun30 - I only have minor comments. Other than that, I believe this is mostly ready to be merged - uploading to MATLAB File Exchange is an extra step and can be addressed at a later point.
# MLTBX test is disabled until we can download packaged binaries and header files | ||
# - name: Test the MLTBX toolbox | ||
# uses: matlab-actions/run-tests@v2 | ||
# with: | ||
# select-by-folder: /home/runner/work/cantera/cantera/test/matlab_experimental |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be possible to use saved artifacts? (or what is already available anyway, as this CI job has compiled the binaries already)
Fwiw, you could make all of this dependent on previously compiled Cantera versions, similar to the .NET runners, which would allow you to test on all platforms (Windows/macOS/Linux). Caveat: you're still on the legacy CLib
@@ -66,10 +66,34 @@ | |||
echo "LD_PRELOAD=$LIB_STDCXX:$LIB_OPENBLAS:$LIB_LAPACK" >> $GITHUB_ENV | |||
- name: Set up MATLAB | |||
uses: matlab-actions/setup-matlab@718d4320188c73c86eb94ce76b553cbf89778487 # v2.5.0 | |||
- name: Set MATLAB search paths for tests and build MLTBX toolbox | |||
uses: matlab-actions/run-command@v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address this CI error by using a hash.
Aside from Ingmar's comments, I'm very confused about how all of the open PRs interact. For example, this PR changes test files but there's also the separate testing PR. Can you clarify the order we should review these? |
the MLTBX file
and upload the artifact
for the MLTBX version
Replaced ctRoot with ctPaths, this will allow the user to set paths to the shared libraries, header files, and toolboxes more freely, instead of relying on relative paths to a fixed path for a certain conda environment.
to how paths are set
Changes proposed in this pull request
If applicable, fill in the issue number this pull request is fixing
This addresses Task 6 from this enhancement proposal: Cantera/enhancements#226
If applicable, provide an example illustrating new features this pull request is introducing
data
,interfaces/matlab_experimental
,test\matlab_experimental
,samples\matlab_experimental
into the toolbox file.Checklist
scons build
&scons test
) and unit tests address code coverage