[Enhancement]: Show the reference case name for model-vs-model diagnostic sets

Aperta Adatta ai principianti
#504 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
82/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python, typescript
Ambito
frontend

Direzione di ricerca

Inizia da frontend/src/features/diagnostics/ComparePage.tsx e comparisonGroups.ts; entrambi sono citati nell’issue. Controlla come i riepiloghi dei confronti espongono i riferimenti e come vengono creati le didascalie e i titoli dei gruppi. Il lavoro è completato quando le didascalie di Test mostrano il riferimento di ciascun insieme, i titoli mostrano un riferimento condiviso o il ripiego per insieme, e le etichette modello rispetto alle osservazioni rimangono invariate.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement
Is your feature request related to a problem?

Model-vs-model diagnostic sets are labeled "E3SM Diags · Model vs. Model", which doesn't say which model is the reference. On the Compare page, the Test view captions show only each set's label, so the reference case is visible only in the page header or on the separate reference images.

Describe the solution you'd like

Show the reference case name wherever it is already loaded:

  • Test view captions: show Reference: <case> under each set's label, as the Reference and Difference views already do. In frontend/src/features/diagnostics/ComparePage.tsx, drop the view !== 'test' condition on the caption.
  • Comparison group title: replace "Model vs. Model" with "Model vs. <case>" when all sets in the group share one reference. When they differ, use "Model vs. per-set references". comparisonGroups.ts already loads each set's compare summary, which includes the reference.

The name comes from the image filename prefix (lat_lon/model_vs_model/v3.LR.piControl-PRECT-ANN-global.png). The backend already extracts it (plot_from_path in backend/app/features/diagnostics/e3sm_diags.py) and returns it as references and reference from the compare API, so no backend change is needed.

Acceptance criteria
  • On the Compare page Test view, each model-vs-model set's caption shows its reference case name.
  • A comparison group whose sets share one reference is titled "E3SM Diags · Model vs. <case>".
  • A group whose sets use different references shows a per-set fallback, not a single wrong name.
  • Model-vs-observations labels are unchanged.
Describe alternatives you've considered

Show the reference in discovery labels (case card, picker, comparison bar). Discovery reads only directory listings, and the directory name (model_vs_model_<Y1>-<Y2>) doesn't include the reference. Getting it there would mean one extra viewer-page fetch per model-vs-model set while browsing cases, so it's out of scope here.

Additional context

Follow-up from #496 / #503.

Lingua principale
Python
Stelle
2
Fork
2
Merge medio
12h 49m
PR unite (30g)
30

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di E3SM-Project/simboard

Tutte le issue di E3SM-Project/simboard

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.