Skip to content

Codex Relay: zyra-project/zyra PR #228 — Add visualize sos CLI command and heatmap --vmin/--vmax#287

Open
Hackshaven wants to merge 4 commits into
stagingfrom
relay/hh-pr-228
Open

Codex Relay: zyra-project/zyra PR #228 — Add visualize sos CLI command and heatmap --vmin/--vmax#287
Hackshaven wants to merge 4 commits into
stagingfrom
relay/hh-pr-228

Conversation

@Hackshaven

Copy link
Copy Markdown
Collaborator

Mirrored from zyra-project/zyra PR #228

Source: zyra-project/zyra#228

This PR is maintained by an automated relay. Changes should be made in the original downstream PR.

claude and others added 4 commits June 22, 2026 01:12
Wire the existing PlotManager Science On a Sphere renderer to the CLI so
gridded data can be rendered as SOS frames (full-globe, PlateCarree, 2:1,
edge-to-edge) directly from `zyra visualize sos` and from `zyra run` YAML.

- Add `zyra visualize sos` (alias `render sos`) backed by PlotManager, with
  single (--input/--output) and batch (--inputs/--output-dir) modes and a
  fixed --vmin/--vmax color range for flicker-free frame sequences.
- Add --vmin/--vmax to `visualize heatmap` so frame sequences can share a
  fixed color scale instead of self-scaling per frame.
- Add a shared `load_data_array` helper (.nc/.nc4/.npy) in cli_utils.
- PlotManager.sos_plot_data now returns the saved output path.
- pipeline_runner: expand list/tuple arg values to multi-token flags so
  nargs options (e.g. inputs, extent) work from YAML/JSON pipelines.
- Register sos in both the CLI and API manifest registration paths and
  regenerate the wizard capabilities manifests.
- Add tests (single + batch render, 2:1 edge-to-edge, consistent color
  scaling across frames) and a sample FV3-Chem SOS pipeline.

Signed-off-by: Claude <noreply@anthropic.com>
…e test

- cli_sos: exit non-zero when a frame fails to render (single and batch
  modes) instead of silently returning 0, so `zyra run` pipelines see
  failures.
- test_sos: rewrite the fixed-scale test to use two frames with different
  ranges sharing a mid-value, comparing the center pixel block; add a
  "teeth" assertion that self-scaling differs. Add failure-exit regression
  tests.

Signed-off-by: Eric Hackathorn <62408375+Hackshaven@users.noreply.github.com>
Skip empty list/tuple stage args rather than emitting a bare `--flag`,
which is a hard parse error for argparse nargs='+' options.

Signed-off-by: Eric Hackathorn <62408375+Hackshaven@users.noreply.github.com>
Signed-off-by: Eric Hackathorn <62408375+Hackshaven@users.noreply.github.com>
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.

2 participants