@testing.requires_testing_data
def test_make_inverse_operator_diag():
    evoked = _get_evoked()
    noise_cov = read_cov(fname_cov).as_diag(copy=False)
    fwd_op = read_forward_solution(fname_fwd, surf_ori=True)
    inv_op = make_inverse_operator(evoked.info, fwd_op, noise_cov,
                                   loose=0.2, depth=0.8)
    _compare_io(inv_op)
    inverse_operator_diag = read_inverse_operator(fname_inv_meeg_diag)
    # This one's only good to zero decimal places, roundoff error (?)
    _compare_inverses_approx(inverse_operator_diag, inv_op, evoked, 0, 1e0)
    # Inverse has 366 channels - 6 proj = 360
    assert_true(compute_rank_inverse(inverse_operator_diag) == 360)
Create a string representation of the exception.
dataset/ETHPy150Open mne-tools/mne-python/mne/minimum_norm/tests/test_inverse.py/test_make_inverse_operator_diag--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/xml/sax/_exceptions.py/SAXParseException.__str__