首页 > 解决方案 > 将 EEG edf 转换为找到的重复项时出现 RuntimeWarning:{'T8-P8'}

问题描述

我是 EEG 的 edf 文件格式的新手,所以当我尝试将 edf 转换为 CVS 时出现错误

<ipython-input-47-29e11a4df1ba>:3: RuntimeWarning:

Channel names are not unique, found duplicates for: {'T8-P8'}. Applying running numbers for duplicates

这是代码:

import numpy as np
import mne
edf = mne.io.read_raw_edf('/content/drive/MyDrive/Project/chb01_01.edf')
header = ','.join(edf.ch_names)
np.savetxt('/content/drive/MyDrive/Project/chb01_01.csv', edf.get_data().T, delimiter=',', header=header)

数据集来自https://physionet.org/content/chbmit/1.0.0/chb01/

标签: python-3.xcsvduplicatesmne-pythoneuropean-data-format

解决方案


推荐阅读