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

Function raw

mne/conftest.py:344–356  ·  view source on GitHub ↗

Get raw data and pick channels to reduce load for testing. (from mne.io.tests.data)

()

Source from the content-addressed store, hash-verified

342
343@pytest.fixture(scope="function")
344def raw():
345 """
346 Get raw data and pick channels to reduce load for testing.
347
348 (from mne.io.tests.data)
349 """
350 raw = read_raw_fif(fname_raw_io, preload=True)
351 # Throws a warning about a changed unit.
352 with pytest.warns(RuntimeWarning, match="unit"):
353 raw.set_channel_types({raw.ch_names[0]: "ias"})
354 raw.pick(raw.ch_names[:9])
355 raw.info.normalize_proj() # Fix projectors after subselection
356 return raw
357
358
359@pytest.fixture(scope="function")

Callers

nothing calls this directly

Calls 4

read_raw_fifFunction · 0.90
set_channel_typesMethod · 0.80
normalize_projMethod · 0.80
pickMethod · 0.45

Tested by

no test coverage detected