@testing.requires_testing_data
@requires_mayavi
def test_coreg_gui():
 from mne.gui._coreg_gui import CoregFrame
 frame = CoregFrame()
 frame.edit_traits()
 frame.model.mri.subjects_dir = subjects_dir
 frame.model.mri.subject = 'sample'
 assert_false(frame.model.mri.fid_ok)
 frame.model.mri.lpa = [[(-0.06), 0, 0]]
 frame.model.mri.nasion = [[0, 0.05, 0]]
 frame.model.mri.rpa = [[0.08, 0, 0]]
 assert_true(frame.model.mri.fid_ok)

@ testing . requires_testing_data @ requires_mayavi def test_coreg_gui ( ) : from mne . gui . _coreg_gui import CoregFrame frame = CoregFrame ( ) frame . edit_traits ( ) frame . model . mri . subjects_dir = subjects_dir frame . model . mri . subject = 'sample' assert_false ( frame . model . mri . fid_ok ) frame . model . mri . lpa = [ [ ( - 0.06 ) , 0 , 0 ] ] frame . model . mri . nasion = [ [ 0 , 0.05 , 0 ] ] frame . model . mri . rpa = [ [ 0.08 , 0 , 0 ] ] assert_true ( frame . model . mri . fid_ok )
test coregistration gui .