@testing.requires_testing_data
def test_dipole_fitting_ctf():
 raw_ctf = read_raw_ctf(fname_ctf).set_eeg_reference()
 events = make_fixed_length_events(raw_ctf, 1)
 evoked = Epochs(raw_ctf, events, 1, 0, 0, baseline=None).average()
 cov = make_ad_hoc_cov(evoked.info)
 sphere = make_sphere_model((0.0, 0.0, 0.0))
 fit_dipole(evoked, cov, sphere)

@ testing . requires_testing_data def test_dipole_fitting_ctf ( ) : raw_ctf = read_raw_ctf ( fname_ctf ) . set_eeg_reference ( ) events = make_fixed_length_events ( raw_ctf , 1 ) evoked = Epochs ( raw_ctf , events , 1 , 0 , 0 , baseline = None ) . average ( ) cov = make_ad_hoc_cov ( evoked . info ) sphere = make_sphere_model ( ( 0.0 , 0.0 , 0.0 ) ) fit_dipole ( evoked , cov , sphere )
test dipole fitting with ctf data .