Test st_overlap.
()
| 760 | @buggy_mkl_svd |
| 761 | @testing.requires_testing_data |
| 762 | def test_st_overlap(): |
| 763 | """Test st_overlap.""" |
| 764 | raw = read_crop(raw_fname).crop(0, 1.0) |
| 765 | mag_picks = pick_types(raw.info, meg="mag", exclude=()) |
| 766 | power = np.sqrt(np.sum(raw[mag_picks][0] ** 2)) |
| 767 | kwargs = dict( |
| 768 | origin=mf_head_origin, regularize=None, bad_condition="ignore", st_duration=0.5 |
| 769 | ) |
| 770 | raw_tsss = maxwell_filter(raw, **kwargs) |
| 771 | assert _compute_rank_int(raw_tsss, proj=False) == 140 |
| 772 | _assert_shielding(raw_tsss, power, 35.8, max_factor=35.9) |
| 773 | raw_tsss = _maxwell_filter_ola(raw, st_overlap=True, **kwargs) |
| 774 | assert _compute_rank_int(raw_tsss, proj=False) == 140 |
| 775 | _assert_shielding(raw_tsss, power, 35.6, max_factor=35.7) |
| 776 | |
| 777 | |
| 778 | @pytest.mark.slowtest |
nothing calls this directly
no test coverage detected