06f232cd75c203765b7165a8d94df1a52d5c7cea,mne/io/fiff/tests/test_raw_fiff.py,,test_drop_channels_mixin,#,1469

Before Change



    // Test that dropping all channels a projector applies to will lead to the
    // removal of said projector.
    raw = read_raw_fif(fif_fname).apply_proj()
    n_projs = len(raw.info["projs"])
    raw.drop_channels(raw.info["projs"][-1]["data"]["col_names"])  // EEG proj
    assert len(raw.info["projs"]) == n_projs - 1

After Change



    // Test that dropping all channels a projector applies to will lead to the
    // removal of said projector.
    raw = read_raw_fif(fif_fname)
    n_projs = len(raw.info["projs"])
    eeg_names = raw.info["projs"][-1]["data"]["col_names"]
    with pytest.raises(RuntimeError, match="loaded"):
        raw.copy().apply_proj().drop_channels(eeg_names)
    raw.load_data().drop_channels(eeg_names)  // EEG proj
    assert len(raw.info["projs"]) == n_projs - 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: mne-tools/mne-python
Commit Name: 06f232cd75c203765b7165a8d94df1a52d5c7cea
Time: 2020-09-05
Author: larson.eric.d@gmail.com
File Name: mne/io/fiff/tests/test_raw_fiff.py
Class Name:
Method Name: test_drop_channels_mixin


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_ecg.py
Class Name:
Method Name: test_find_ecg


Project Name: mne-tools/mne-python
Commit Name: 46f3fa12d06827d975ba925f183637ad6916eaa8
Time: 2018-10-12
Author: luke.bloy@gmail.com
File Name: mne/io/ctf/tests/test_ctf.py
Class Name:
Method Name: test_saving_picked


Project Name: mne-tools/mne-python
Commit Name: 06298716dc48db52f69496e4248927f90925ee65
Time: 2020-10-22
Author: larson.eric.d@gmail.com
File Name: examples/visualization/plot_meg_sensors.py
Class Name:
Method Name: