7c1233ba612bdb08d640c924ef4220b2fe13fb71,mne/io/reference.py,,add_reference_channels,#Any#Any#Any#,141

Before Change


        raise RuntimeError("Data needs to be preloaded.")
    if isinstance(ref_channels, str):
        ref_channels = [ref_channels]
    elif not isinstance(ref_channels, list):
        raise ValueError("`ref_channels` should be either str or list of str. "
                         "%s was provided." % type(ref_channels))
    for ch in ref_channels:
        if ch in inst.info["ch_names"]:
            raise ValueError("Channel %s already specified in inst." % ch)

After Change


    
    // Check to see that data is preloaded
    _check_preload(inst, "add_reference_channels")
    _validate_type(ref_channels, (list, tuple, str), "ref_channels")
    if isinstance(ref_channels, str):
        ref_channels = [ref_channels]
    for ch in ref_channels:
        if ch in inst.info["ch_names"]:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: mne-tools/mne-python
Commit Name: 7c1233ba612bdb08d640c924ef4220b2fe13fb71
Time: 2020-09-25
Author: larson.eric.d@gmail.com
File Name: mne/io/reference.py
Class Name:
Method Name: add_reference_channels


Project Name: mne-tools/mne-python
Commit Name: 91473147e57464173dedb00ce20f3d5aefd883bd
Time: 2020-10-12
Author: larson.eric.d@gmail.com
File Name: mne/viz/ica.py
Class Name:
Method Name: plot_ica_properties


Project Name: mne-tools/mne-python
Commit Name: e68d1963fee51c78969eb2523e9877a62024fb8a
Time: 2020-05-14
Author: larson.eric.d@gmail.com
File Name: mne/cov.py
Class Name:
Method Name: _regularized_covariance