@testing.requires_testing_data
def test_rap_music_simulated():
 (evoked, noise_cov, forward, forward_surf_ori, forward_fixed) = _get_data()
 n_dipoles = 2
 (sim_evoked, stc) = simu_data(evoked, forward_fixed, noise_cov, n_dipoles, evoked.times)
 dipoles = rap_music(sim_evoked, forward_fixed, noise_cov, n_dipoles=n_dipoles)
 _check_dipoles(dipoles, forward_fixed, stc, evoked)
 (dipoles, residual) = rap_music(sim_evoked, forward_fixed, noise_cov, n_dipoles=n_dipoles, return_residual=True)
 _check_dipoles(dipoles, forward_fixed, stc, evoked, residual)
 (dipoles, residual) = rap_music(sim_evoked, forward, noise_cov, n_dipoles=n_dipoles, return_residual=True)
 _check_dipoles(dipoles, forward_fixed, stc, evoked, residual)
 (dipoles, residual) = rap_music(sim_evoked, forward_surf_ori, noise_cov, n_dipoles=n_dipoles, return_residual=True)
 _check_dipoles(dipoles, forward_fixed, stc, evoked, residual)

@ testing . requires_testing_data def test_rap_music_simulated ( ) : ( evoked , noise_cov , forward , forward_surf_ori , forward_fixed ) = _get_data ( ) n_dipoles = 2 ( sim_evoked , stc ) = simu_data ( evoked , forward_fixed , noise_cov , n_dipoles , evoked . times ) dipoles = rap_music ( sim_evoked , forward_fixed , noise_cov , n_dipoles = n_dipoles ) _check_dipoles ( dipoles , forward_fixed , stc , evoked ) ( dipoles , residual ) = rap_music ( sim_evoked , forward_fixed , noise_cov , n_dipoles = n_dipoles , return_residual = True ) _check_dipoles ( dipoles , forward_fixed , stc , evoked , residual ) ( dipoles , residual ) = rap_music ( sim_evoked , forward , noise_cov , n_dipoles = n_dipoles , return_residual = True ) _check_dipoles ( dipoles , forward_fixed , stc , evoked , residual ) ( dipoles , residual ) = rap_music ( sim_evoked , forward_surf_ori , noise_cov , n_dipoles = n_dipoles , return_residual = True ) _check_dipoles ( dipoles , forward_fixed , stc , evoked , residual )
test rap-music with simulated evoked .