Skip to content

Represent parsed single and multi-segment headers separately - #753

Merged
tompollard merged 1 commit into
mainfrom
refactor-parsed-headers
Nov 27, 2026
Merged

tompollard merged 1 commit into
mainfrom
refactor-parsed-headers

Conversation

@tompollard

Copy link
Copy Markdown
Member

Summary

Parse WFDB headers into distinct private structures for single-segment and
multi-segment headers. The former holds signal-line fields; the latter holds
segment-line fields. Convert each parsed structure to the existing public
Record or MultiRecord type at the I/O boundary.

This makes the two on-disk header shapes explicit without changing the
rdheader or rdrecord API, loaded signal values, or mutable legacy fields.
It is a small step toward #749 and informs #743 and #746; it does not resolve
those broader issues.

Verification

  • Offline suite: 902 passed, 4 skipped, 21 deselected (MPLBACKEND=Agg).
  • Sphinx HTML build with warnings as errors passed.
  • Ruff check and format check passed.

@tompollard
tompollard merged commit 00cb55d into main Nov 27, 2026
19 checks passed
@tompollard
tompollard deleted the refactor-parsed-headers branch November 27, 2026 22:51
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