@slow_test
@testing.requires_testing_data
@requires_mayavi
@requires_nibabel()
def test_render_mri():
 tempdir = _TempDir()
 trans_fname_new = op.join(tempdir, 'temp-trans.fif')
 for (a, b) in [[trans_fname, trans_fname_new]]:
  shutil.copyfile(a, b)
 report = Report(info_fname=raw_fname, subject='sample', subjects_dir=subjects_dir)
 with warnings.catch_warnings(record=True):
  warnings.simplefilter('always')
  report.parse_folder(data_path=tempdir, mri_decim=30, pattern='*', n_jobs=2)
 report.save(op.join(tempdir, 'report.html'), open_browser=False)
 assert_true(repr(report))

@ slow_test @ testing . requires_testing_data @ requires_mayavi @ requires_nibabel ( ) def test_render_mri ( ) : tempdir = _TempDir ( ) trans_fname_new = op . join ( tempdir , 'temp-trans.fif' ) for ( a , b ) in [ [ trans_fname , trans_fname_new ] ] : shutil . copyfile ( a , b ) report = Report ( info_fname = raw_fname , subject = 'sample' , subjects_dir = subjects_dir ) with warnings . catch_warnings ( record = True ) : warnings . simplefilter ( 'always' ) report . parse_folder ( data_path = tempdir , mri_decim = 30 , pattern = '*' , n_jobs = 2 ) report . save ( op . join ( tempdir , 'report.html' ) , open_browser = False ) assert_true ( repr ( report ) )
test rendering mri for mne report .