mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:50:53 +01:00
[PR #455] [MERGED] world_grid_atlas: diagnose one-cell shoreline grids #505
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#505
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/455
Author: @EdenBendheim
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD
Base:
main← Head:ubiq/world-grid-atlas-one-cell-mask📝 Commits (1)
c33f9d6world_grid_atlas: diagnose one-cell shoreline grids📊 Changes
2 files changed (+55 additions, -7 deletions)
View changed files
📝
tests/test_world_grid_atlas.py(+53 -7)📝
tools/world_grid_atlas.py(+2 -0)📄 Description
Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123198649
What changed
tools/world_grid_atlas.py: Validategrid["rows"] * grid["columns"] < 2at the top ofmatch_mask()before reading the fallback or ranking a runner-up score, raising the same descriptiveValueError(a grid needs at least two cells to rank a match) used bymatch_content()so the CLI exits2cleanly instead ofIndexError.tests/test_world_grid_atlas.py: Synthetic tests covering 1×1, 0-row, and 0-column grids, a real CLI run on a synthetic BGRA fixture, and a valid two-cell match (plus LF fixture writes pinned).Testing & Disclosure
gpt-6.2-sol) and reviewed with Codex (gpt-6.2-astra).ubiquitarianism/leonidamain(8f481cf16):test_world_grid_atlas.py(19 passed, 13 skipped without Pillow; previously verified 32/32 with NumPy 2.3.1 + Pillow 13.0.0),check_no_game_data.py, LF check — all passed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.