From 115b8a394f2da3fa582ddc6b515bb29c906927b3 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Wed, 28 Oct 2026 22:50:36 +0100 Subject: [PATCH] Drop the plan item from the mean's comment and say why with_fixes compares indices with > --- bin/branch_chunks/fixes.py | 2 +- bin/routing_figures/measure.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/branch_chunks/fixes.py b/bin/branch_chunks/fixes.py index 441bef48..8a306b36 100644 --- a/bin/branch_chunks/fixes.py +++ b/bin/branch_chunks/fixes.py @@ -46,7 +46,7 @@ def with_fixes(branch: Branch, shipped: list[tuple[Item, ...]], traced: list[Tra fixed: dict[int, set[int]] = {} for change in traced: for commit in change.commits: - # Blame at a commit on the branch should name only commits its log holds; any other counts against no chunk. + # Blame at a commit on the branch should name only commits its log holds; any other counts against no chunk. Chunks run newest first, so > keeps the chunks older than the fixing one. if commit in branch.owner and branch.owner[commit] > change.chunk: fixed.setdefault(branch.owner[commit], set()).add(change.chunk) chunks = [] diff --git a/bin/routing_figures/measure.py b/bin/routing_figures/measure.py index 6bc70b62..166661c3 100644 --- a/bin/routing_figures/measure.py +++ b/bin/routing_figures/measure.py @@ -333,7 +333,7 @@ def summed(chunks: list[ChunkFigures], of: typing.Callable[[ChunkFigures], colle def fixes_per_chunk(chunks: list[ChunkFigures]) -> str: """The mean later fixes of the chunks whose later fixes are known, and how many those are, as `1.0 (3 known)`; `unknown` where none is.""" - # A mean, where item 247 named the median: most chunks gather no later fix, so the median reads 0 until over half do, and can't show the rise per finished chunk that goal 1's counter-signal watches. + # A mean, not a median: most chunks gather no later fix, so the median reads 0 until over half do, and can't show the rise per finished chunk that goal 1's counter-signal watches. known = [chunk.fixed_later for chunk in chunks if chunk.fixed_later is not None] return f"{statistics.mean(known):.1f} ({len(known)} known)" if known else "unknown"