e7cee41c3f30e4fedd4e6ae931cc7dd64e378d7b,mne/preprocessing/nirs/nirs.py,,_check_channels_ordered,#Any#Any#,68

Before Change


           (ch1_name_info.groups()[1] != ch2_name_info.groups()[1]) or \
           (int(ch1_name_info.groups()[2]) != freqs[0]) or \
           (int(ch2_name_info.groups()[2]) != freqs[1]):
            raise RuntimeError("NIRS channels not ordered correctly")

    return picks

After Change


    // Every second channel should be same SD pair
    // and have the specified light frequencies.
    picks = _picks_to_idx(raw.info, "fnirs", exclude=[])
    if len(picks) % 2 != 0:
        raise ValueError(
            "NIRS channels not ordered correctly. An even number of NIRS "
            "channels is required. %d channels were provided: %r"
            % (len(raw.ch_names), raw.ch_names))
    for ii in picks[::2]:
        ch1_name_info = re.match(r"S(\d+)_D(\d+) (\d+)",
                                 raw.info["chs"][ii]["ch_name"])
        ch2_name_info = re.match(r"S(\d+)_D(\d+) (\d+)",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: mne-tools/mne-python
Commit Name: e7cee41c3f30e4fedd4e6ae931cc7dd64e378d7b
Time: 2020-03-23
Author: 748691+rob-luke@users.noreply.github.com
File Name: mne/preprocessing/nirs/nirs.py
Class Name:
Method Name: _check_channels_ordered


Project Name: onnx/onnxmltools
Commit Name: 5f41a2bd185b946de113714910e1f5f2730d5f4b
Time: 2018-05-19
Author: wschin@outlook.com
File Name: onnxmltools/convert/sklearn/shape_calculators/SVM.py
Class Name:
Method Name: calculate_sklearn_svm_output_shapes


Project Name: bokeh/bokeh
Commit Name: 6d7069d9a13c2e15b7c7fd67a092cf9738f00347
Time: 2015-10-23
Author: hp@pobox.com
File Name: bokeh/embed.py
Class Name:
Method Name: autoload_static