Repository navigation
Use on-demand channel views for record selection - #840
Merged
Merged
Conversation
tompollard
commented
Dec 2, 2026
tompollard
left a comment
Member
Author
There was a problem hiding this comment.
Thanks. Results are unchanged: across every header in sample-data (1,352 reads covering all channels, [0], last-and-first and reversed selections, combined, expanded, preserved multi-segment and force_channels=False reads), every attribute's value and type matches the merge base, and the reads that fail there fail the same way here. Misaligned sig_name, skew and block_size lists still give the same write error from wrsamp and write_record, so the new length check in _capture_signal_fields acts as a backstop. Selecting 256 of 512 channels takes about the same time as before. The offline suite, Ruff and the strict docs build pass locally.
Ready to merge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This begins #744 without adding a second mutable metadata store. The channel snapshot introduced for writing is now a general on-demand view of aligned per-channel
Recordfields. It checks the length of each present field before building channel entries.Both single-record selection and variable-layout
MultiRecordselection now select complete channel entries, then project them back to the existing mutableRecordlists. A later snapshot reflects in-place edits to those lists. No public attribute or file format changes are intended.Verification
New tests cover in-place edits, a misaligned list, channels sharing one file with skew, expanded channels with different samples per frame, and a variable-layout header. The full offline suite passes (1,616 passed, 4 skipped, 23 deselected); Ruff and the strict Sphinx build pass.
Refs #744 and #749. Separating logical signal metadata from file encoding metadata remains follow-up work for #744.