Repository navigation
Conversation
zm711
reviewed
Nov 20, 2026
zm711
left a comment
Contributor
There was a problem hiding this comment.
Thanks @evadiva3. I believe that @h-mayorquin has more experience with plexon so I'll leave him to also give this a read. In general we do not allow for generated file regression tests as the goal of the library is to be tested on real data. It would be better for you to write a test based on plexon/File_plexon_3.plx.
Author
|
Thanks, I've replaced the generated file with a test using |
This branch has not been deployed
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.
Closes #1976.
The Plexon reader calculates each analog block's start using the current block's sample count. When consecutive blocks have different sizes, this shifts the offsets and can return the wrong samples. Accumulate the preceding block's sample count instead.
Following review, the regression now uses
plexon/File_plexon_3.plxin the existingTestPlexonRawIOclass. The generated file and its setup are removed. This recording has 5,007 signal blocks with sample counts of 120 and 86. The original parser places the last block at sample 600686 instead of 600720. The test checks all block starts and compares a read across the final boundary with the stored samples. The read ends inside the last block to keep it independent of #1971.The real-recording regression fails without the fix and passes with it. It was run directly against the downloaded fixture; Datalad setup was not run locally. The Plexon/core pytest run reports 651 passed, 14 skipped, 1 warning. Black passes for the source and test files, and Flake8 passes for the updated test file.
OpenAI Codex assisted with investigation, the test changes, real-recording validation, and this description.