Answer stability round 1: 1 🔴, 1 🟡; restore the import order, and decide ships-alone from L, E and I so an unranked row counts
This commit is contained in:
+3
-2
@@ -203,8 +203,9 @@ def renames(todo: str) -> set[tuple[int, int, int]] | Failure:
|
||||
|
||||
|
||||
def ships_alone(item: Item) -> bool:
|
||||
"""An item above BUNDLE_MAX_R joins no chunk, and none joins it."""
|
||||
return item.scores.get("R", 0) > BUNDLE_MAX_R
|
||||
"""An item above BUNDLE_MAX_R joins no chunk, and none joins it. R comes from L, E and I, so an R cell rank_todo.py has yet to fill counts too; a table without them, in the old shape, ships nothing alone."""
|
||||
scores = item.scores
|
||||
return all(level in scores for level in ("L", "E", "I")) and risk(scores["L"], scores["E"], scores["I"]) > BUNDLE_MAX_R
|
||||
|
||||
|
||||
def bundle_candidates(found: list[Item], first: Item) -> list[Item]:
|
||||
|
||||
Reference in New Issue
Block a user