本文整理汇总了Python中mne.Epochs.info['bads']方法的典型用法代码示例。如果您正苦于以下问题:Python Epochs.info['bads']方法的具体用法?Python Epochs.info['bads']怎么用?Python Epochs.info['bads']使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mne.Epochs
的用法示例。
在下文中一共展示了Epochs.info['bads']方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _get_epochs
# 需要导入模块: from mne import Epochs [as 别名]
# 或者: from mne.Epochs import info['bads'] [as 别名]
def _get_epochs():
"""Get epochs."""
raw = read_raw_fif(raw_fname)
raw.add_proj([], remove_existing=True)
events = read_events(event_name)
epochs = Epochs(raw, events[:5], event_id, tmin, tmax, picks=picks,
decim=10, verbose='error')
epochs.info['bads'] = [epochs.ch_names[-1]]
epochs.info.normalize_proj()
return epochs
示例2: _get_epochs
# 需要导入模块: from mne import Epochs [as 别名]
# 或者: from mne.Epochs import info['bads'] [as 别名]
def _get_epochs():
raw = _get_raw()
events = _get_events()
picks = _get_picks(raw)
# Use a subset of channels for plotting speed
picks = picks[np.round(np.linspace(0, len(picks) - 1, n_chan)).astype(int)]
picks[0] = 2 # make sure we have a magnetometer
epochs = Epochs(raw, events[:5], event_id, tmin, tmax, picks=picks,
baseline=(None, 0))
epochs.info['bads'] = [epochs.ch_names[-1]]
return epochs
示例3: _get_epochs
# 需要导入模块: from mne import Epochs [as 别名]
# 或者: from mne.Epochs import info['bads'] [as 别名]
def _get_epochs():
"""Get epochs."""
raw = read_raw_fif(raw_fname)
raw.add_proj([], remove_existing=True)
events = read_events(event_name)
picks = _get_picks(raw)
# Use a subset of channels for plotting speed
picks = picks[np.round(np.linspace(0, len(picks) - 1, n_chan)).astype(int)]
picks[0] = 2 # make sure we have a magnetometer
epochs = Epochs(raw, events[:5], event_id, tmin, tmax, picks=picks)
epochs.info['bads'] = [epochs.ch_names[-1]]
return epochs
示例4: _get_epochs
# 需要导入模块: from mne import Epochs [as 别名]
# 或者: from mne.Epochs import info['bads'] [as 别名]
def _get_epochs():
raw = _get_raw()
raw.add_proj([], remove_existing=True)
events = _get_events()
picks = _get_picks(raw)
# Use a subset of channels for plotting speed
picks = picks[np.round(np.linspace(0, len(picks) - 1, n_chan)).astype(int)]
picks[0] = 2 # make sure we have a magnetometer
with warnings.catch_warnings(record=True): # proj
epochs = Epochs(raw, events[:5], event_id, tmin, tmax, picks=picks,
baseline=(None, 0))
epochs.info['bads'] = [epochs.ch_names[-1]]
return epochs