From 55f31d9988b023429f430fe3a2fe5f57cf683981 Mon Sep 17 00:00:00 2001 From: Branimir Georgiev <66906831+braboj@users.noreply.github.com> Date: Mon, 2 Nov 2026 09:51:37 +0200 Subject: [PATCH] fix(efficacy): the size radar's caption names each row's full scale A reader could not work an axis out from the intervals: the caption said "over the row's full scale" and never said what the scales are. They are now written from the constants the radar draws with. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01DpT5xPFWEQr1bipxbbKBRF --- tests/efficacy/report.py | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/tests/efficacy/report.py b/tests/efficacy/report.py index cbf1b72..89c88f4 100644 --- a/tests/efficacy/report.py +++ b/tests/efficacy/report.py @@ -3180,6 +3180,10 @@ def planted(*pairs): checks.append(("round 5d's radar is explained by size, not by votes", "bound nearest zero" in " ".join(text.split()) and "the share of them better" not in text, None)) + checks.append(("round 5d's radar names each row's full scale", + "1 point for a judge score, 20 pp for a share, 20 points " + "for coverage, and a factor of 4 for a count or a cost" + in " ".join(text.split()), None)) # H3 predicts a loss: a worse row or a worse reliability supports it, # and every row held refutes it. @@ -3886,15 +3890,23 @@ def cost(arm): return sorted(arms, key=cost) +# A row's full scale in words, from the constants the radar draws with, so +# the caption can never name a scale the drawing does not use. +FULL_SCALES = ( + "%g point for a judge score, %g pp for a share, %g points for coverage, " + "and a factor of %g for a count or a cost" + % (JUDGE_SCALE, 100 * SHARE_SCALE, COVERAGE_SCALE, RATIO_SCALE)) + # How to read a radar drawn by size, under it. RADAR_SIZE_READING = ( "One radar per arm, from the cheapest to the dearest. Each axis is the " "mean of its rows' moves against `%s`: each row's interval bound nearest " "zero over the row's full scale, from -1 at the centre to +1 at the rim, " - "and 0 where the interval crosses zero. The dashed ring is `%s`, so " - "outside it is better. A hollow point is an axis with no verdict. The " - "rows behind each axis, and every number, are in the sections below." - % (BARE, BARE)) + "and 0 where the interval crosses zero. A row's full scale is %s, so a " + "reader can work any axis out from the intervals below. The dashed ring " + "is `%s`, so outside it is better. A hollow point is an axis with no " + "verdict. The rows behind each axis, and every number, are in the " + "sections below." % (BARE, FULL_SCALES, BARE)) # How to read the radar, under it. RADAR_READING = (