Skip to content

Recognise the normal Createc trailing appendix; only warn on oversized tails#34

Merged
jacobson30-bot merged 1 commit into
mainfrom
createc-tail-appendix
Jun 12, 2026
Merged

Recognise the normal Createc trailing appendix; only warn on oversized tails#34
jacobson30-bot merged 1 commit into
mainfrom
createc-tail-appendix

Conversation

@jacobson30-bot

Copy link
Copy Markdown
Contributor

Problem

Since the parser review (#32) the viewer surfaces scan.warnings in the status bar — and every healthy Createc .dat load showed "Loaded with warnings: ignored N trailing float32 value(s)". Investigation showed the trailing data is normal Createc format layout, not data loss: four spare scan-line buffers (4 * Num.X floats, zero-filled apart from an occasional stray turnaround sample) plus a 32-float zero block in newer header variants, present in every healthy fixture regardless of channel count.

Fix

  • read_createc_dat_report now treats tails within the 4 * Num.X + 32 budget as expected layout: still recorded in ignored_tail_float_count for diagnostics, but no user-facing warning.
  • Tails larger than the budget mean payload the reader does not understand and stay loud (the warning message now names the expected appendix size).
  • docs/createc_dat_reader.md documents the appendix.

Tests

  • New corpus test: every createc_scan_*.dat fixture has a tail within budget and loads with no trailing-data warning (through both read_createc_dat_report and load_scan).
  • New synthetic test: a tail one float past the budget still warns.
  • Full suite: 2449 passed, 3 skipped. ruff check clean.

🤖 Generated with Claude Code

…d tails

Every healthy Createc image carries a small appendix after the image
planes: four spare scan-line buffers (4 * Num.X floats) plus a 32-float
zero block in newer headers. Since the viewer began surfacing
scan.warnings in the status bar, this normal format layout produced a
"Loaded with warnings" message on every Createc load.

The reader now treats tails within the 4 * Num.X + 32 budget as expected
layout (still recorded as ignored_tail_float_count for diagnostics) and
only warns when the tail exceeds the budget, i.e. payload it does not
understand. Corpus test asserts every fixture loads warning-free; a
synthetic oversized-tail test keeps the loud path covered.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jacobson30-bot jacobson30-bot merged commit 84dee9a into main Jun 12, 2026
3 checks passed
@jacobson30-bot jacobson30-bot deleted the createc-tail-appendix branch June 12, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant