0

我是 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/

4

0 回答 0