当前位置: 首页>>代码示例>>Python>>正文


Python Epochs.info['bads']方法代码示例

本文整理汇总了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
开发者ID:jhouck,项目名称:mne-python,代码行数:12,代码来源:test_evoked.py

示例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
开发者ID:leggitta,项目名称:mne-python,代码行数:13,代码来源:test_evoked.py

示例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
开发者ID:deep-introspection,项目名称:mne-python,代码行数:14,代码来源:test_evoked.py

示例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
开发者ID:JuliaSprenger,项目名称:mne-python,代码行数:15,代码来源:test_evoked.py


注:本文中的mne.Epochs.info['bads']方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。