Datasets:
Question about the electrodes
#2
by
Aceticia
- opened
Hi, this is great dataset. Can you also publish the electrode names for the recording? This is not included in the paper.
Thanks. You can use the mne library to read them:
import mne
# Load the EDF file
raw = mne.io.read_raw_edf('your_file.edf', preload=False)
# Get all channel names
channel_names = raw.ch_names
print(f"Channel names: {channel_names}")
print(f"Number of channels: {len(channel_names)}")
jonxuxu
changed discussion status to
closed
I know the electrodes for raw files can be extracted this way, how about the preprocessed files?
You will have to infer their indices in the numpy object based on the order specified in the _get_electrode_channels method in preprocessing_utils.py.