def test_stc_arithmetic():
    stc = _fake_stc()
    data = stc.data.copy()

    out = list()
    for a in [data, stc]:
        a = a + a * 3 + 3 * a - a ** 2 / 2

        a += a
        a -= a
        with warnings.catch_warnings(record=True):
            warnings.simplefilter('always')
            a /= 2 * a
        a *= -a

        a += 2
        a -= 1
        a *= -1
        a /= 2
        b = 2 + a
        b = 2 - a
        b = +a
        assert_array_equal(b.data, a.data)
        with warnings.catch_warnings(record=True):
            warnings.simplefilter('always')
            a **= 3
        out.append(a)

    assert_array_equal(out[0], out[1].data)
    assert_array_equal(stc.sqrt().data, np.sqrt(stc.data))

    stc_mean = stc.mean()
    assert_array_equal(stc_mean.data, np.mean(stc.data, 1)[:, None])
Enables the FadeCandy's keyframe interpolation.
dataset/ETHPy150Open mne-tools/mne-python/mne/tests/test_source_estimate.py/test_stc_arithmetic--crossover with--dataset/ETHPy150Open missionpinball/mpf/mpf/platform/fadecandy.py/FadeCandyOPClient.enable_interpolation