def _make_stc(raw, src):
    seed = 42
    sfreq = raw.info['sfreq']  # Hz
    tstep = 1. / sfreq
    n_samples = len(raw.times) // 10
    times = np.arange(0, n_samples) * tstep
    stc = simulate_sparse_stc(src, 10, times, random_state=seed)
    return stc
Helper to make a STC
dataset/ETHPy150Open mne-tools/mne-python/mne/simulation/tests/test_raw.py/_make_stc