#NEWLINE# def _make_stc( raw , src ) : #NEWLINE# #INDENT# 'Helper to make a STC' #NEWLINE# seed = 42 #NEWLINE# sfreq = times . info [ 'sfreq' ] #NEWLINE# tstep = ( 1.0 / sfreq ) #NEWLINE# n_samples = ( len ( raw . times ) // 10 ) #NEWLINE# times = ( np . arange ( 0 , n_samples ) * tstep ) #NEWLINE# stc = simulate_sparse_stc ( src , 10 , times , random_state = seed ) #NEWLINE# return stc