Repository navigation
Require an explicit signal layout - #775
Merged
Merged
Conversation
Member
Author
|
Agreed. I updated |
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
Require
layoutas a keyword argument toread_signal_values. Callers chooselayout="uniform"to average multi-frequency channels to one value per base frame, orlayout="expanded"to retain every channel sample. Omitting it now raises aTypeErrorbefore any file is read.This is a small follow-up to #772 while the opt-in API is still unreleased. It addresses the default-layout concern in #745 and #376 without changing
rdrecord,rdsamp, or the WFDB file reader.The docs explain the choice, and all examples and tests now pass a layout. A regression test covers the omitted argument.
Verification
MPLBACKEND=Agg).