[skip ci] Notebooks improvements#1331
Conversation
|
Ah, and so the following works since I guess in this case there must be logic in either the Python wrapper for FGFDMExec or within FGFDMExec itself to figure out the path to the JSBSim files relative to it's installed location? PATH_TO_JSBSIM_FILES=None
fdm = jsbsim.FGFDMExec(PATH_TO_JSBSIM_FILES) |
|
Looks good to merge in. I did test it out in Google Colab to confirm that the P.S |
|
Green light to merge? |
|
Looks good! Go for it |
@seanmcleod70 Currently this does not work. The CI workflow is skipped if and only if the commit message (and PR title) starts with However this could be modified to use the function |
|
Hmm, I was pretty certain that when I looked up But doing a quick search on it and looking at documentation from Github:
https://docs.github.com/en/actions/how-tos/manage-workflow-runs/skip-workflow-runs
I see the Github documentation is ambiguous. And regular Bing Copilot (as opposed to Copilot Pro 😉) has an example with
Now having said all that I hadn't looked at Actually reading: https://docs.github.com/en/actions/how-tos/manage-workflow-runs/skip-workflow-runs
So does that not imply that our workflow And maybe was only required before 2021 before Github added support? |
|
Just pushed a new commit to #1332 with a trailing |
I did not know that this feature had been added to GitHub. The code I mentioned above was added by the commit 7c3d47a on Feb 6, 2021 and the GitHub feature you mentioned was added on Feb 8, 2021, just 2 days after I had implemented some code for Because of that, for more than 4 years I was convinced that the code in |
|
@seanmcleod70 I've just realized that one of your question has remained unanswered.
Yes, the logic is in the Python wrapper. When Lines 729 to 736 in ac3ec7c The function Lines 65 to 72 in ac3ec7c |


In continuation to the PR #1314 which allowed to upload the example notebooks to the Google Colab platform, this PR improves the code a bit:
pip install jsbsim)!) exceptpip install. These are not portable (Unix) and can be replaced by portable Python code (i.e. usingos.get_cwd()instead of!pwd).%matplotlib inlineandjsbsim.FGJSBBase().debug_lvl = 0need not be issued on each notebook cells.And sorry, my IDE cleans up trailing spaces before saving files so there are a few white spaces modifications that are polluting the diff.