Skip to content

Add trough/tropical-trough/instability-axis to training-viz callback - #46

Merged
aaTman merged 1 commit into
feat/include-forming-dissipating-and-troughsfrom
worktree-troughs-in-plots-v2
Jul 27, 2026
Merged

Add trough/tropical-trough/instability-axis to training-viz callback#46
aaTman merged 1 commit into
feat/include-forming-dissipating-and-troughsfrom
worktree-troughs-in-plots-v2

Conversation

@aaTman

@aaTman aaTman commented Jul 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • src/fronts/callbacks.py still had a local, stale 5-class FRONT_TYPE_CLASS_INDEX (CF/WF/SF/OF/DL) that was missed when commit 7bbd17e expanded the rest of the codebase (targets.py, evaluate.py, plot/plot.py, all configs/schooner_*.yaml) to 9 classes.
  • This dict feeds train.py's TestVisualizationCallback, which drives the periodic W&B training-time prediction map and per-office-region lite performance diagrams — so troughs (TROF), tropical troughs (TT), and the instability axis (INST) were silently excluded from every training-time output image and stat, even though the main plotting/eval scripts fully supported them.
  • Updated the dict to match plot.py/evaluate.py exactly, and added a regression test locking parity in place.

Test plan

  • pixi run -e linux pytest tests/test_callbacks.py -v — 18/18 pass, including new TestFrontTypeClassIndex parity test
  • pixi run -e linux pytest tests/data/test_targets.py tests/test_train.py -v — 84 pass, 1 pre-existing unrelated failure (test_3d_config_parses, a data-variable-count assertion, reproduces identically on feat/include-forming-dissipating-and-troughs before this change)
  • Rendered a synthetic sample via plot_module.plot_test_prediction with the updated front_types list — confirmed "Trough", "Tropical trough", and "Instability axis" now appear in the legend/output where before only CF/WF/SF/OF/DL did

🤖 Generated with Claude Code

…lback

callbacks.py had its own local 5-class FRONT_TYPE_CLASS_INDEX that was
missed when the rest of the codebase (targets.py, evaluate.py, plot.py,
configs) was expanded to 9 classes. Training-time visualization images
and lite performance-diagram stats were silently excluding TROF/TT/INST.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@aaTman
aaTman marked this pull request as ready for review July 27, 2026 02:06
@aaTman
aaTman merged commit d0d0c17 into feat/include-forming-dissipating-and-troughs Jul 27, 2026
@aaTman
aaTman deleted the worktree-troughs-in-plots-v2 branch July 27, 2026 02:06
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.

1 participant