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

Function test_st_overlap

mne/preprocessing/tests/test_maxwell.py:762–775  ·  view source on GitHub ↗

Test st_overlap.

()

Source from the content-addressed store, hash-verified

760@buggy_mkl_svd
761@testing.requires_testing_data
762def 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

Callers

nothing calls this directly

Calls 8

pick_typesFunction · 0.90
_compute_rank_intFunction · 0.90
read_cropFunction · 0.85
maxwell_filterFunction · 0.85
_assert_shieldingFunction · 0.85
sqrtMethod · 0.80
cropMethod · 0.45
sumMethod · 0.45

Tested by

no test coverage detected