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

Function _evoked_cov_sphere

mne/conftest.py:755–764  ·  view source on GitHub ↗

Compute a small evoked/cov/sphere combo for use with forwards.

(_evoked)

Source from the content-addressed store, hash-verified

753# not to modify them in-place in the tests, so keep them private
754@pytest.fixture(scope="session", params=[testing._pytest_param()])
755def _evoked_cov_sphere(_evoked):
756 """Compute a small evoked/cov/sphere combo for use with forwards."""
757 evoked = _evoked.copy().pick(picks="meg")
758 evoked.pick(evoked.ch_names[::4])
759 assert len(evoked.ch_names) == 77
760 cov = mne.read_cov(fname_cov)
761 sphere = mne.make_sphere_model(
762 (0.0, 0.0, 0.04), 0.1, relative_radii=(0.995, 0.997, 0.998, 1.0)
763 )
764 return evoked, cov, sphere
765
766
767@pytest.fixture(scope="session")

Callers

nothing calls this directly

Calls 2

pickMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected