Get raw data and pick channels to reduce load for testing. (from mne.io.tests.data)
()
| 342 | |
| 343 | @pytest.fixture(scope="function") |
| 344 | def 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") |
nothing calls this directly
no test coverage detected