mne plot出错_Python-MNE从阵列中读取EEG数据

我有一个三维数字阵列(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。在

导入这些数据的正确方法是什么,这样可以最容易地完成我的预期分析?在

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值