Compute a small evoked/cov/sphere combo for use with forwards.
(_evoked)
| 753 | # not to modify them in-place in the tests, so keep them private |
| 754 | @pytest.fixture(scope="session", params=[testing._pytest_param()]) |
| 755 | def _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") |