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

クローズ
#780 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
cli, data

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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().

主要言語
HTML
スター
47
フォーク
45
平均マージ
2時間 45分
マージ済み PR(30日)
93

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

yakew7/Fair-Code のほかの issue

yakew7/Fair-Code の issue をすべて見る

似ている issue

CLI の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。