-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
ENH: check for dropping all channels #12763
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
Conversation
|
Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴 |
for more information, see https://pre-commit.ci
larsoner
left a comment
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.
Can you add a doc/changes/12763.bugfix.rst with something like:
Fix check for dropping all channels in :meth:`mne.io.Raw.drop_channels` and related methods, by :newcontrib:`Farzin Negahbani`.
and then add your name + URL to doc/changes/names.inc?
reduce redundant calculation for drop all check Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
|
🎉 Congrats on merging your first pull request! 🥳 Looking forward to seeing more from you in the future! 💪 |
|
Thanks @Farzin-Negahbani ! |
|
@larsoner, Thank you and all amaizing contributors :)) |
Reference issue
Fixes #12762.
What does this implement/fix?
Avoids dropping all channels in an object by raising a ValueError with the message:
All channel(s) would be dropped.