1b9d2228bc40f817ef1765686bc2ec6e81079d13,mne/preprocessing/tests/test_ssp.py,,test_compute_proj_ctf,#,136

Before Change


                            exclude="bads"))

    // Test with and without gradient compensation
    for c in [0, 1]:
        raw.apply_gradient_compensation(c)
        for average in [False, True]:
            n_projs_init = len(raw.info["projs"])

After Change


    // Test with and without gradient compensation
    raw.apply_gradient_compensation(0)
    n_projs_init = len(raw.info["projs"])
    with pytest.warns(RuntimeWarning, match="Attenuation"):
        projs, _ = compute_proj_eog(
            raw, n_mag=2, n_grad=2, n_eeg=2, average=True, ch_name="EEG059",
            avg_ref=True, no_proj=False, l_freq=None, h_freq=None,
            reject=None, tmax=dur_use, filter_length=1000)
    _check_projs_for_expected_channels(projs, n_mags, n_grads, n_eegs)
    assert len(projs) == (5 + n_projs_init)

    raw.apply_gradient_compensation(1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: mne-tools/mne-python
Commit Name: 1b9d2228bc40f817ef1765686bc2ec6e81079d13
Time: 2020-12-17
Author: larson.eric.d@gmail.com
File Name: mne/preprocessing/tests/test_ssp.py
Class Name:
Method Name: test_compute_proj_ctf


Project Name: matplotlib/matplotlib
Commit Name: ff90100b13be1ebdfe53f1bf02309c78e65278fe
Time: 2018-02-06
Author: jklymak@gmail.com
File Name: lib/matplotlib/tests/test_constrainedlayout.py
Class Name:
Method Name: test_constrained_layout7


Project Name: mne-tools/mne-python
Commit Name: 0d88b2ef0ec924c1bcfdc6c1a9fe7b8cd7a752bd
Time: 2020-09-01
Author: guillaume.favelier@gmail.com
File Name: mne/viz/_brain/tests/test_brain.py
Class Name:
Method Name: test_brain_linkviewer