- commit
- a896283ee9fcd5f906e25ccd5b439b54e2be342f
- parent
- 8e031d0e232be824514aa64a3c6ff625d2446b9b
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2022-08-06 07:56
coverage: include total difference for WCAG comparison
Diffstat
| M | plots/coverage.py | 7 | +++++++ |
1 files changed, 7 insertions, 0 deletions
diff --git a/plots/coverage.py b/plots/coverage.py
@@ -62,6 +62,13 @@ def print_table(rows): 62 62 totals = [sum(r[:, i]) for i in range(r.shape[1])] 63 63 if len(rows) == len(rows[0]): 64 64 totals.append(sum(rows[i][i] for i in range(len(rows)))) -1 65 else: -1 66 totals.append( -1 67 rows[0][0] + rows[0][1] + rows[0][2] -1 68 + rows[1][3] -1 69 + rows[2][4] -1 70 + rows[3][5] + rows[3][6] -1 71 ) 65 72 print_row(totals) 66 73 print() 67 74