Drop the plan item from the mean's comment and say why with_fixes compares indices with >
This commit is contained in:
@@ -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 = []
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user