-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add _on_missing functionality to UpdateChannelsMixin #11077
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
Changes from 7 commits
7d8adff
aa6e299
3f171dc
a96a92d
bd077cc
1f8b48a
d3f15fb
1c79eea
9ef982d
c195218
761d719
69c5f09
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -449,6 +449,14 @@ def test_drop_channels(): | |
| pytest.raises(ValueError, raw.drop_channels, ["MEG 0111", 5]) | ||
| pytest.raises(ValueError, raw.drop_channels, 5) # must be list or str | ||
|
|
||
| # by default, drop channels raises a ValueError if a channel can't be found | ||
| m_chs = ["MEG 0111", "MEG blahblah"] | ||
| pytest.raises(ValueError, raw.drop_channels, m_chs) | ||
| # ...but this can be turned to a warning | ||
| pytest.warns(RuntimeWarning, raw.drop_channels, m_chs, on_missing='warn') | ||
|
||
| # ...or ignored altogether | ||
| raw.drop_channels(m_chs, on_missing='ignore') | ||
|
|
||
|
|
||
| def test_pick_channels(): | ||
| """Test if picking channels works with various arguments.""" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.