我有一个三维数字阵列(epoch*channel*timepoint)的脑电图数据。timepoint是一个256元素的数组,包含每个采样的时间点(总共1s,256Hz)。epoch是一个实验性的试验。在
首先,我不确定应该将这个原始数据导入RawArray还是EpochsArray。我用这个试过后者:ch_names = list containing my 64 eeg channel names
allData = 3d numpy array as described above
info = mne.create_info(ch_names, 256, ch_types='eeg')
event_id = 1
#I got this from a tutorial but really unsure what it does and I think this may be the problem
events = np.array([200, event_id]) #I got this from a tutorial but really unsure what it does and I think this may be the problem
raw = mne.EpochsArray(allData, info, events=events)
picks = mne.pick_types(info, meg=False, eeg=True, misc=False)
raw.plot(picks=picks, show=True, block=True)
当我运行这个时,我得到一个索引错误:“数组的索引太多”
最后,我想对数据做一些STFT和CSP分析,但是现在我需要一些帮助来完成初始重组和导入MNE。在
导入这些数据的正确方法是什么,这样可以最容易地完成我的预期分析?在