Number of channels/electrodes in EEG raw data

Hello, everyone!

  • MNE version: 1.5.0
  • operating system: Windows 10
  • Python version: 3.11.4

I’ve benn given some .edf files with ECG recordings and I would like to know if there’s a function that tells me which channels are included in the file, as well as the order of them.
This is because I want to calculate connectivity between specific electrodes based on 10-20 system

Hi @LEPacheco

have you tried:

import mne

raw = mne.io.read_raw(YOUR-FILE-NAME.edf)
raw.ch_names

Which will print out the channel names in the order that they occur in the underlying data.

3 Likes