Skip to content

Session-aware HPC plot wrappers (#25)#39

Merged
rajeeja merged 1 commit into
mainfrom
rajeeja/issue-25-plot-dataset-handle
May 9, 2026
Merged

Session-aware HPC plot wrappers (#25)#39
rajeeja merged 1 commit into
mainfrom
rajeeja/issue-25-plot-dataset-handle

Conversation

@rajeeja
Copy link
Copy Markdown
Collaborator

@rajeeja rajeeja commented May 9, 2026

Summary

Test plan

  • uv run pre-commit run --all-files — clean
  • uv run pytest tests/ --ignore=tests/test_remote_agent.py -q — 230 passed, 5 skipped
  • uv run pytest tests/test_hpc_safety.py tests/test_remote_agent.py -q — 31 passed, 10 skipped
  • New TestHpcPlotWrappersDatasetHandle class covers handle resolution + the two negative cases (handle without session_id, neither path nor handle)

plot_mesh_hpc, plot_variable_hpc, and plot_zonal_mean_hpc now accept
session_id + dataset_handle and resolve grid/data paths from a
registered session dataset via _resolve_plot_paths, matching the
handle pattern already used by subset_bbox / subset_polygon.

Direct grid_path / data_path arguments still work; the new params
are optional and validated by the existing _resolve_plot_paths
helper, which raises clear ValueErrors for missing session_id or
missing path+handle combinations.
@rajeeja rajeeja merged commit 31f38b4 into main May 9, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Session-aware plotting: plot_mesh/variable/zonal_mean should accept session_id + dataset_handle

1 participant