Repository navigation
Retain detailed info about calculations during NoisyChannels - #68
Merged
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #68 +/- ##
=========================================
Coverage ? 97.05%
=========================================
Files ? 7
Lines ? 578
Branches ? 0
=========================================
Hits ? 561
Misses ? 17
Partials ? 0
Continue to review full report at Codecov.
|
sappelhoff
approved these changes
Apr 19, 2021
sappelhoff
left a comment
Owner
There was a problem hiding this comment.
Good idea, that'll be useful for both things you mention (unit tests, later "reports" for users).
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.
PR Description
In MATLAB PREP, various values and matrices calculated during findNoisyChannels are saved as part of the resulting EEG object. These include the raw correlation values for each RANSAC window and each correlation window, the calculated noisiness and deviations for each channel, the dropout windows, and more. MATLAB PREP also does some extra calculations with some of this data when generating reports that otherwise isn't used in bad channel detection (e.g. reporting the specific windows of high frequency noise across each channel). Here's what MatPREP retains for the initial, pre-interpolation, and post-interpolation findNoisyChannels runs:
This PR makes PyPREP retain most of the same detailed info.
The immediate purpose of the PR is that this will make it a lot easier to do proper and detailed unit tests, especially for comparing values between PyPREP and MATLAB PREP. Instead of just testing channel detection output, we can now test whether specific values match up with what we expect.
The other purpose of the PR is that (at some point) we might want to make this part of the public API, so that people can access and dig into these values like they can with MATLAB PREP, and/or add functions to do the additional calculations with some of this data the way MatPREP does.
Merge Checklist
closes #<issue-number>to automatically close an issue