to_csv() ignores reference-baseline deviations even when --reference is used

Chiusa
#780 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à
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
cli, data

Direzione di ricerca

Start in faircode/report.py, especially to_csv() lines 38-72, and compare its proxy-hint section with reference rendering in to_terminal() at line 133 and to_html() at line 331. Update the CSV export to include the stated reference fields, then mirror the change in the web buildCsvReport(). Verify the CLI reproduction with --reference and confirm the output retains expected, actual, delta, and deviation data.

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

Descrizione

bug help wanted

Where: faircode/report.py to_csv() (lines 38-72).

Current gap: With --reference, each dimension carries d["reference"] (expected/actual/delta per group, plus deviation). to_terminal() (line 133) and to_html() (line 331) both render it, but the CSV export drops it, so faircode profile data.csv --reference ref.csv --csv out.csv produces a file that has lost the main point of the run.

Repro:

$ grep -n "reference" faircode/report.py
(matches at 133 and 331, none in 38-72)

Suggested approach: append a reference section (dimension,label,expected,actual,delta,deviation) when any dimension has reference, mirroring the proxy-hint section added for #760; mirror it in the web buildCsvReport().

Lingua principale
HTML
Stelle
47
Fork
45
Merge medio
3h 24m
PR unite (30g)
101

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 yakew7/Fair-Code

Tutte le issue di yakew7/Fair-Code

Issue simili

Altre issue su CLI

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.