Open
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Introduce TermDef (key, term, filename) as a base dataclass and make TermSpec inherit from it, adding the notebook-specific mean_axes and err_axes fields. Update all pipeline_utils function signatures to accept Sequence[TermDef] since none of them use the axes fields directly. Add pipeline.py with run_pipeline(), which wires together the existing pipeline_utils building blocks into the full prepare→save→forecast→ reconstruct→save sequence. This gives the CLI and tests a single importable entry point for the end-to-end pipeline.
Replace emulate() and jump() in cli.py with a call to run_pipeline(),
passing data_path=args.path and out_dir separately so the raw data
root and the run output directory are no longer conflated.
Fix a path mismatch between Simulation.save() and load_ts_all():
save() writes to {prepared_path}/{term}/{term}.npz (nested), but
load_ts_all was passing prepared_path directly to load_ts, which
looked for {prepared_path}/{term}.npz (flat). Update load_ts_all to
pass the term subdirectory, and update the Jumper notebook save cell
to match the same nested convention.
A test which runs the full pipeline end-to-end using the existing test data. Asserts that output .npy files are written for each term, each array has exactly `steps` time steps, and no output is entirely NaN.
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.
Change Description
Refactors
cli.pyto make use ofpipeline_utils.pyTask List
TermDefbase classrun_pipelinefunction which makes use of functions frompipeline_utils.pyrun_pipelineCloses #104, #105