@testing.requires_testing_data
@requires_mayavi
@requires_mne
@requires_freesurfer
def test_subject_source_with_fsaverage():
 from mne.gui._file_traits import MRISubjectSource
 tempdir = _TempDir()
 mri = MRISubjectSource()
 assert_false(mri.can_create_fsaverage)
 assert_raises(RuntimeError, mri.create_fsaverage)
 mri.subjects_dir = tempdir
 assert_true(mri.can_create_fsaverage)
 mri.create_fsaverage()

@ testing . requires_testing_data @ requires_mayavi @ requires_mne @ requires_freesurfer def test_subject_source_with_fsaverage ( ) : from mne . gui . _file_traits import MRISubjectSource tempdir = _TempDir ( ) mri = MRISubjectSource ( ) assert_false ( mri . can_create_fsaverage ) assert_raises ( RuntimeError , mri . create_fsaverage ) mri . subjects_dir = tempdir assert_true ( mri . can_create_fsaverage ) mri . create_fsaverage ( )
test subjectselector .