Repository navigation
Let run_all.sh finish when rerunning into a separate BSS_OUT - #132
Merged
Merged
Conversation
Since v2.2.0 the graphical abstract plots E9 results, which run_e9_property_mode.sh produces. run_all.sh still called it unconditionally, so the documented independent rerun into a separate BSS_OUT (README section 4.2) always exited 1 at the last step. The canonical run into outputs/ was unaffected because the E9 files already exist there. Skip the graphical abstract with a log message when the output directory has no E9 results, and add a regression test for both cases.
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
Since v2.2.0,
make_graphical_abstract.pyplots E9 results (e9_property_mode/outer_summary.csv), whichrun_e9_property_mode.shproduces.run_all.sh(the E0–E8 chain) still called it unconditionally, so the documented independent rerun into a separate directory (README §4.2,BSS_OUT=... ./run_all.sh) always exited 1 at the last step withFileNotFoundError. The canonical run intooutputs/was unaffected because the E9 files already exist there.The driver test did not catch this because its fake interpreter succeeds for every stage.
Changes
run_all.shruns the graphical abstract only when$OUTDIR/e9_property_mode/outer_summary.csvexists; otherwise it logsgraphical abstract skipped. The canonical run behaves as before.test_full_driver_into_separate_directory_handles_missing_e9_outputs[has_e9=False|True]. It failed before the fix.No scientific code, configuration, data or recorded outputs changed.
Validation
Clean worktree from
5f1bf83, environment installed fromrequirements-lock.txt,verify_environment.pypasses.pytest tests/audit -q: 99 passed (97 before + 2 new)pytest tests/unit -q: 87 passedruff check tests/audit/test_paper_reproducibility.py,bash -n run_all.shverify_outputs.sh: PASSED (125 files matchSHA256SUMS; 14 tables and number files identical; 227 manuscript macros)BSS_OUT(before the fix, all scientific stages completed), thencompare_rerun.py:RERUN MATCHES; 873 macros, 8 timing-only differences, 0 non-timing differences; E1–E5, E7, E8 and Wilcoxon files identical; E0 informational differences as documentedrun_e9_property_mode.sh --reproduce: 2,080 rows reproduced, max absolute difference 0.0; claim checker passedrun_tbmd_optimization.shrerun: not executedNot addressed here (owner decision)
run_e9_property_mode.sh --reproducerewritesoutputs/e9_property_mode/reproduction_validation.json, which is listed inSHA256SUMS. The committed file predates the current comparator schema (it lacks the emptyextra_columns/missing_columnskeys), so after that documented commandverify_outputs.shwould report a checksum mismatch even though no values change.