544989c7ff9922e04bddad72c1b13156ce344ace,mne/cov.py,,_check_method_params,#Any#Any#Any#Any#Any#Any#,497

Before Change


            "Invalid {name} ({method}). Accepted values (individually or "
            "in a list) are any of "{accepted_methods}" or None.".format(
                name=name, method=method, accepted_methods=accepted_methods))
    rank, method = _check_rank(rank, method, was_auto)
    if not keep_sample_mean:
        if len(method) != 1 or "empirical" not in method:
            raise ValueError("`keep_sample_mean=False` is only supported"
                             "with %s="empirical"" % (name,))

After Change


            "Invalid {name} ({method}). Accepted values (individually or "
            "in a list) are any of "{accepted_methods}" or None.".format(
                name=name, method=method, accepted_methods=accepted_methods))
    if not (isinstance(rank, str) and rank == "full"):
        if was_auto:
            method.pop(method.index("factor_analysis"))
        for method_ in method:
            if method_ in ("pca", "factor_analysis"):
                raise ValueError("%s can so far only be used with rank="full","
                                 " got rank=%r" % (method_, rank))
    if not keep_sample_mean:
        if len(method) != 1 or "empirical" not in method:
            raise ValueError("`keep_sample_mean=False` is only supported"
                             "with %s="empirical"" % (name,))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: mne-tools/mne-python
Commit Name: 544989c7ff9922e04bddad72c1b13156ce344ace
Time: 2019-02-15
Author: alexandre.gramfort@m4x.org
File Name: mne/cov.py
Class Name:
Method Name: _check_method_params


Project Name: mne-tools/mne-python
Commit Name: 544989c7ff9922e04bddad72c1b13156ce344ace
Time: 2019-02-15
Author: alexandre.gramfort@m4x.org
File Name: mne/cov.py
Class Name:
Method Name: regularize


Project Name: mne-tools/mne-python
Commit Name: 544989c7ff9922e04bddad72c1b13156ce344ace
Time: 2019-02-15
Author: alexandre.gramfort@m4x.org
File Name: mne/beamformer/_lcmv.py
Class Name:
Method Name: make_lcmv