Skip to content

Project parsed headers into records explicitly - #839

Merged
tompollard merged 1 commit into
mainfrom
feature/explicit-record-projection
Dec 2, 2026
Merged

tompollard merged 1 commit into
mainfrom
feature/explicit-record-projection

Conversation

@tompollard

Copy link
Copy Markdown
Member

Summary

This continues #749 on the read side. The header parser already returns typed record, signal, and segment fields. This PR makes the final projection into mutable Record and MultiRecord objects explicit through their constructors, instead of iterating the field tables and assigning attributes dynamically.

The projection preserves legacy per-channel and per-segment lists, omitted fields, comments, the declared segment count, and fixed versus variable layout. It adds no nested mutable metadata to either public object.

Tests

New tests cover every parsed record and signal field, header-only records, fixed and variable multi-segment headers, independent list edits, pickle state, and the legacy attribute shape. The full offline suite passes (1,612 passed, 4 skipped, 23 deselected). Ruff and the strict Sphinx build pass.

Refs #749. Validation and equality internals remain separate follow-up work.

@tompollard
tompollard merged commit 5bb5e00 into main Dec 2, 2026
19 checks passed
@tompollard
tompollard deleted the feature/explicit-record-projection branch December 2, 2026 01:55
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