MCPcopy
hub / github.com/mne-tools/mne-python / _apply_raw

Method _apply_raw

mne/preprocessing/xdawn.py:460–475  ·  view source on GitHub ↗

Aux method.

(self, raw, include, exclude, event_id, picks)

Source from the content-addressed store, hash-verified

458 return out
459
460 def _apply_raw(self, raw, include, exclude, event_id, picks):
461 """Aux method."""
462 if not raw.preload:
463 raise ValueError("Raw data must be preloaded to apply Xdawn")
464
465 raws = dict()
466 for eid in event_id:
467 data = raw[picks, :][0]
468
469 data = self._pick_sources(data, include, exclude, eid)
470
471 raw_r = raw.copy()
472
473 raw_r[picks, :] = data
474 raws[eid] = raw_r
475 return raws
476
477 def _apply_epochs(self, epochs, include, exclude, event_id, picks):
478 """Aux method."""

Callers 1

applyMethod · 0.95

Calls 2

_pick_sourcesMethod · 0.95
copyMethod · 0.45

Tested by

no test coverage detected