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

Function _load_data

mne/preprocessing/tests/test_interpolate.py:25–44  ·  view source on GitHub ↗

Load data.

()

Source from the content-addressed store, hash-verified

23
24
25def _load_data():
26 """Load data."""
27 # It is more memory efficient to load data in a separate
28 # function so it's loaded on-demand
29 raw = io.read_raw_fif(raw_fname).pick(["eeg", "stim"])
30 events = read_events(event_name)
31 # subselect channels for speed
32 picks = pick_types(raw.info, meg=False, eeg=True, exclude=[])[:15]
33 epochs = Epochs(
34 raw,
35 events,
36 event_id,
37 tmin,
38 tmax,
39 picks=picks,
40 preload=True,
41 reject=dict(eeg=80e-6),
42 )
43 evoked = epochs.average()
44 return raw.load_data(), epochs.load_data(), evoked
45
46
47@pytest.mark.parametrize("interp_thresh", [0.0, 0.5, 1.0])

Callers 2

test_equalize_badsFunction · 0.70

Calls 6

read_eventsFunction · 0.90
pick_typesFunction · 0.90
EpochsClass · 0.90
pickMethod · 0.45
averageMethod · 0.45
load_dataMethod · 0.45

Tested by

no test coverage detected