[WAVE 1] Fix example content search paths#1068
Open
mickaelbegon wants to merge 3 commits into
Open
Conversation
Contributor
Author
mickaelbegon
force-pushed
the
codex/fix-810-example-content-search
branch
from
July 23, 2026 13:43
1b3ac38 to
69400b0
Compare
mickaelbegon
marked this pull request as ready for review
July 23, 2026 13:46
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1068 +/- ##
==========================================
+ Coverage 77.26% 77.86% +0.60%
==========================================
Files 196 196
Lines 21506 21503 -3
==========================================
+ Hits 16616 16743 +127
+ Misses 4890 4760 -130
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bioptim/examplesinstead of the process working directoryRoot cause
Content search combined
os.getcwd()with only the top-level example category. Launchingpython -m bioptim.examplesoutside the examples directory therefore produced invalid paths, and nestedtoy_examples/...directories were discarded while flattening the tree.Validation
QT_QPA_PLATFORM=offscreen MPLCONFIGDIR=/private/tmp/bioptim-mpl-810 python -m pytest tests/shard1/test__run_examples.py::test_example_paths_are_preserved_when_flattening -q(1 passed)git diff --checkCloses #810
This change is