[PR #459] [MERGED] image_d16_probe: report packed Y mismatches in first_off #510

Closed
opened 2026-11-26 20:18:07 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/459
Author: @EdenBendheim
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD

Base: main ← Head: ubiq/image-d16-probe-first-off-y


📝 Commits (1)

  • 7c2aaeb Report packed Y mismatches in image_d16_probe

📊 Changes

2 files changed (+63 additions, -7 deletions)

View changed files

📝 tests/test_image_d16_probe.py (+55 -2)
📝 tools/image_d16_probe.py (+8 -5)

📄 Description

Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123201364

What changed

  • tools/image_d16_probe.py: Align first_off example selection with the exact per-rule X/Y scoring predicate used for agreement counts so packed two-channel (r32g32_uint) Y-only mismatches are no longer silently omitted while scoring 0/32. Single-channel texels and exit codes (0/1/2/77) remain unchanged.
  • tests/test_image_d16_probe.py: Synthetic tests covering Y-only, X-only, combined, mixed-rule, and all-matching packed texels, single-channel readbacks, and the 4-example cap (plus LF fixture writes pinned).

Testing & Disclosure

  • AI-assisted: Implemented with Codex (gpt-6.2-sol) and reviewed with Codex (gpt-6.2-astra).
  • Environment: macOS 27.3, Apple M1 Max, Python 3.14.3, Homebrew LLVM 21.1.8 (CPU-only, synthetic fixtures, zero game data).
  • Verified on ubiquitarianism/leonida main (8f481cf16): test_image_d16_probe.py (22/22 passed, hardware class skipped), --self-test, 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.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/459 **Author:** [@EdenBendheim](https://github.com/EdenBendheim) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@QemmHD](https://github.com/QemmHD) **Base:** `main` ← **Head:** `ubiq/image-d16-probe-first-off-y` --- ### 📝 Commits (1) - [`7c2aaeb`](https://github.com/ubiquitarianism/leonida/commit/7c2aaebf1a46f91aaf1d425fa3db82a122c8ea16) Report packed Y mismatches in image_d16_probe ### 📊 Changes **2 files changed** (+63 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_image_d16_probe.py` (+55 -2) 📝 `tools/image_d16_probe.py` (+8 -5) </details> ### 📄 Description Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123201364 ### What changed - **`tools/image_d16_probe.py`**: Align `first_off` example selection with the exact per-rule X/Y scoring predicate used for agreement counts so packed two-channel (`r32g32_uint`) Y-only mismatches are no longer silently omitted while scoring `0/32`. Single-channel texels and exit codes (`0`/`1`/`2`/`77`) remain unchanged. - **`tests/test_image_d16_probe.py`**: Synthetic tests covering Y-only, X-only, combined, mixed-rule, and all-matching packed texels, single-channel readbacks, and the 4-example cap (plus LF fixture writes pinned). ### Testing & Disclosure - **AI-assisted:** Implemented with Codex (`gpt-6.2-sol`) and reviewed with Codex (`gpt-6.2-astra`). - **Environment:** macOS 27.3, Apple M1 Max, Python 3.14.3, Homebrew LLVM 21.1.8 (CPU-only, synthetic fixtures, zero game data). - **Verified on `ubiquitarianism/leonida` `main` (`8f481cf16`):** `test_image_d16_probe.py` (22/22 passed, hardware class skipped), `--self-test`, `check_no_game_data.py`, LF check — all passed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:18:07 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#510
No description provided.