Remove EEG channels (over the 64th channel)

Hello, I am beginner in programming working with mne.
I have a question:
How can I remove some channels? I have to keep the channels 1-64 and remove the 65-69 channels. I tried the <mne.pick_types> function but I got an error when tried to exclude the channels 65-69 (I know the name of the channels).
Iā€™m using: MNE version: 1.2.1, operating system: Windows 11

Thank you in advance for your help.

Can checkout the raw.drop_channels function.

https://mne.tools/stable/generated/mne.io.Raw.html#mne.io.Raw.drop_channels

Otherwise feel free to post code and more details on your dataset and we can try to debug from there.

3 Likes

It works! Thank you!