removed pdf docs and cleaned example#3
Merged
starry-phoenix merged 1 commit intomainfrom Mar 5, 2026
Merged
Conversation
Reviewer's GuideRemoves PDF/LaTeX documentation build support and obsolete salinity/Hydra example artifacts, and adds a self-contained Jupyter quickstart notebook demonstrating a simple SPyice model run without Hydra-based configuration files. Sequence diagram for the new Hydra-free SPyice quickstart notebook workflowsequenceDiagram
actor User
participant JupyterNotebook
participant OmegaConf
participant ConfigSort
participant Utils_create_output_directory as create_output_directory
participant PreProcess
participant SeaIceModel
participant Analysis
participant VisualiseModel
participant FileSystem
User->>JupyterNotebook: Open quickstart_example.ipynb
User->>JupyterNotebook: Run import cell
JupyterNotebook->>OmegaConf: create(constants_dict)
OmegaConf-->>JupyterNotebook: config_raw (OmegaConf)
JupyterNotebook->>ConfigSort: getconfig_dataclass(config_raw, config_type_jupyter)
ConfigSort-->>JupyterNotebook: config (dataclass)
JupyterNotebook->>Utils_create_output_directory: create_output_directory(wo_hydra_dir, S_IC, dz, dt, iter_max, example)
Utils_create_output_directory->>FileSystem: mkdir output paths
FileSystem-->>Utils_create_output_directory: output_dir paths created
Utils_create_output_directory-->>JupyterNotebook: out_dir_final
User->>JupyterNotebook: Run preprocessing cell
JupyterNotebook->>PreProcess: get_variables(config_raw, out_dir_final)
PreProcess->>FileSystem: write preprocessing outputs
PreProcess-->>JupyterNotebook: preprocess_data, userinput_data
User->>JupyterNotebook: Set model options on userinput_data
User->>JupyterNotebook: Run model cell
JupyterNotebook->>SeaIceModel: get_results(preprocess_data, userinput_data)
SeaIceModel->>FileSystem: write simulation outputs
SeaIceModel-->>JupyterNotebook: results_data
JupyterNotebook->>Analysis: get_error_results(t_k_diff, t_stefan_diff, residual, temperature_mushy, phi_mushy, salinity_mushy, output_dir)
Analysis->>FileSystem: export residuals and error summaries
Analysis-->>JupyterNotebook: analysis_data
User->>JupyterNotebook: Create visualization object
JupyterNotebook->>VisualiseModel: __init__(userinput_data, results_data, analysis_data)
VisualiseModel-->>JupyterNotebook: model_visualization_object
User->>JupyterNotebook: Call plot_error_temp, plot_depth_over_time, plot_temperature_heatmap, plot_salinity_heatmap
JupyterNotebook->>VisualiseModel: plotting methods
VisualiseModel->>FileSystem: optionally save figures, CSV
VisualiseModel-->>JupyterNotebook: rendered plots in notebook
Flow diagram for updated documentation build scripts (HTML only, no PDF)flowchart LR
subgraph DocsScripts["Docs build scripts in pyproject.toml"]
Clean["clean: make clean --directory=docs"]
Html["html: make html --directory=docs"]
Serve["serve: python -m http.server --directory=docs/build/html/"]
Build["build: make clean --directory=docs && make html --directory=docs"]
end
User["Developer running docs commands"] --> Clean
User --> Html
User --> Serve
User --> Build
%% Previously there was a latexpdf target to build PDFs; it is now removed
%% so the flow now only supports HTML documentation generation.
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The quickstart_example.ipynb is checked in with execution counts, outputs, and large embedded images; consider clearing outputs and resetting execution counts before committing to keep diffs small and avoid bloating the repo.
- The notebook hardcodes documentation links to http://[::1]:8000; it would be more robust to point to a stable public URL or a relative docs path so that users running the notebook elsewhere don't get broken links.
- In quickstart_example.ipynb you import both
create_output_directoryandConfigSortfromspyice.utilsin separate statements; you can simplify by importing them together from the same module in one line to keep the imports tidy.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The quickstart_example.ipynb is checked in with execution counts, outputs, and large embedded images; consider clearing outputs and resetting execution counts before committing to keep diffs small and avoid bloating the repo.
- The notebook hardcodes documentation links to http://[::1]:8000; it would be more robust to point to a stable public URL or a relative docs path so that users running the notebook elsewhere don't get broken links.
- In quickstart_example.ipynb you import both `create_output_directory` and `ConfigSort` from `spyice.utils` in separate statements; you can simplify by importing them together from the same module in one line to keep the imports tidy.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
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 by Sourcery
Remove legacy salinity-specific example configuration and outputs while adding a quickstart notebook-based example and simplifying docs build options.
New Features:
Enhancements:
Build: