3cb776d78d9286eab9d83959fcd9ee0169a7516d,mne/preprocessing/tests/test_maxwell.py,,test_other_systems,#,207

Before Change


    // CTF
    raw_ctf = read_crop(fname_ctf_raw)
    assert raw_ctf.compensation_grade == 3
    pytest.raises(RuntimeError, maxwell_filter, raw_ctf)  // compensated
    raw_ctf.apply_gradient_compensation(0)
    pytest.raises(ValueError, maxwell_filter, raw_ctf)  // cannot fit headshape
    raw_sss = maxwell_filter(raw_ctf, origin=(0., 0., 0.04))
    _assert_n_free(raw_sss, 68)
    _assert_shielding(raw_sss, raw_ctf, 1.8)

After Change


    // CTF
    raw_ctf = read_crop(fname_ctf_raw)
    assert raw_ctf.compensation_grade == 3
    with pytest.raises(RuntimeError, match="compensated"):
        maxwell_filter(raw_ctf)
    raw_ctf.apply_gradient_compensation(0)
    with pytest.raises(ValueError, match="digitization points"):
        maxwell_filter(raw_ctf)
    raw_sss = maxwell_filter(raw_ctf, origin=(0., 0., 0.04))
    _assert_n_free(raw_sss, 68)
    _assert_shielding(raw_sss, raw_ctf, 1.8)
    with catch_logging() as log:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: mne-tools/mne-python
Commit Name: 3cb776d78d9286eab9d83959fcd9ee0169a7516d
Time: 2020-04-21
Author: larson.eric.d@gmail.com
File Name: mne/preprocessing/tests/test_maxwell.py
Class Name:
Method Name: test_other_systems


Project Name: mne-tools/mne-python
Commit Name: 3cb776d78d9286eab9d83959fcd9ee0169a7516d
Time: 2020-04-21
Author: larson.eric.d@gmail.com
File Name: mne/preprocessing/tests/test_maxwell.py
Class Name:
Method Name: test_movement_compensation


Project Name: mne-tools/mne-python
Commit Name: 3cb776d78d9286eab9d83959fcd9ee0169a7516d
Time: 2020-04-21
Author: larson.eric.d@gmail.com
File Name: mne/preprocessing/tests/test_maxwell.py
Class Name:
Method Name: test_basic