@testing.requires_testing_data
def test_field_map_ctf():
    'Test that field mapping can be done with CTF data.'
    raw = read_raw_fif(raw_ctf_fname).crop(0, 1)
    raw.apply_gradient_compensation(3)
    events = make_fixed_length_events(raw, duration=0.5)
    evoked = Epochs(raw, events).average()
    evoked.pick_channels(evoked.ch_names[:50])
    make_field_map(evoked, trans=trans_fname, subject='sample', subjects_dir=subjects_dir)
Test that field mapping can be done with CTF data.
@testing.requires_testing_data
def test_field_map_ctf():
    
    raw = read_raw_fif(raw_ctf_fname).crop(0, 1)
    raw.apply_gradient_compensation(3)
    events = make_fixed_length_events(raw, duration=0.5)
    evoked = Epochs(raw, events).average()
    evoked.pick_channels(evoked.ch_names[:50])
    make_field_map(evoked, trans=trans_fname, subject='sample', subjects_dir=subjects_dir)