Skip to content

Conversation

@Farzin-Negahbani
Copy link
Contributor

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.

@welcome
Copy link

welcome bot commented Jul 31, 2024

Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴

Copy link
Member

@larsoner larsoner left a 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?

@larsoner larsoner added this to the 1.8 milestone Jul 31, 2024
Farzin-Negahbani and others added 2 commits August 1, 2024 09:50
reduce redundant calculation for drop all check

Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
@larsoner larsoner merged commit c339bcc into mne-tools:main Aug 1, 2024
@welcome
Copy link

welcome bot commented Aug 1, 2024

🎉 Congrats on merging your first pull request! 🥳 Looking forward to seeing more from you in the future! 💪

@larsoner
Copy link
Member

larsoner commented Aug 1, 2024

Thanks @Farzin-Negahbani !

@Farzin-Negahbani
Copy link
Contributor Author

@larsoner, Thank you and all amaizing contributors :))

@Farzin-Negahbani Farzin-Negahbani deleted the drop-all-chs branch August 5, 2024 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dropping all channels raises "No channels match the selection"

3 participants