-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Raising meaningful warnings/errors for interpolate_bads, when supplie… #13518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
54dd4a1
Raising meaningful warnings/errors for interpolate_bads, when supplie…
1himan be254c4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 7f5d63b
Improved logic and error message
1himan 0fa2ba9
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 272c38a
Removed my custome testing file
1himan 04d2f7e
minor changes
1himan db1b993
Fixing CI tests
1himan 8ea167e
Merge branch 'main' into interpolate_bads_bugfix
1himan 8c0a5a9
Merge branch 'main' into interpolate_bads_bugfix
1himan feb4415
Merge branch 'main' into interpolate_bads_bugfix
1himan 63f8dd5
Validation warning while processing docstring for .interpolate_bads()…
1himan c566b90
Merge branch 'interpolate_bads_bugfix' of https://github.com/1himan/m…
1himan c1bcbc5
Indentation fix
1himan fec6daf
CLI check fix
1himan fdff96d
Merge branch 'mne-tools:main' into interpolate_bads_bugfix
1himan d84c11f
this fixes the cli tests
1himan 54c82e5
Merge branch 'main' into interpolate_bads_bugfix
1himan 78ad836
Made suggested changes
1himan 9358051
Improved tests
1himan 2d19ecb
Fixed linting errors
1himan 68f7039
Merge branch 'main' into interpolate_bads_bugfix
1himan 4915ff0
Rmoved redundancy
1himan e4b7bb9
Merge branch 'main' into interpolate_bads_bugfix
1himan 68dbb28
Added dev entries, and fixed test logic
1himan fecd9c9
Merge branch 'main' into interpolate_bads_bugfix
1himan a3f70e3
Fixing ci tests
1himan fc9621f
Merge branch 'main' into interpolate_bads_bugfix
1himan 4238184
Merge branch 'main' into interpolate_bads_bugfix
1himan 3828f82
Polish
1himan 1f335df
Merge branch 'main' into interpolate_bads_bugfix
1himan c1fe227
Merge branch 'main' into interpolate_bads_bugfix
1himan bce4d64
Merge branch 'main' into interpolate_bads_bugfix
1himan c801334
Change on_bad_position behavior from 'raise' to 'warn'
1himan 5907250
More meaningful error and warning message to the user
1himan 590861c
fixed ruff error
1himan a2ab8c9
Adding final suggestions
1himan 7b1e697
Merge branch 'main' into interpolate_bads_bugfix
1himan a026239
Merge branch 'main' into interpolate_bads_bugfix
1himan 4c551d9
Merge branch 'main' into interpolate_bads_bugfix
1himan 5a3fedb
Merge branch 'main' into interpolate_bads_bugfix
1himan 9512936
Adding version:1.12
1himan 7a79dd1
Reverting changes
1himan 72aa5de
Reverting changes
1himan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Make :meth:`~mne.io.Raw.interpolate_bads` method flexible (ignore, warn, raise) about how to handle interpolation of channels with invalid positions, by `Himanshu Mahor`_. |
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't this assignment to
raw.info["bads"]unnecessary since we just verified thatraw.info["bads"]already equalsch_to_interpabove?