@testing.requires_testing_data
@requires_nibabel()
def test_render_mri_without_bem():
 tempdir = _TempDir()
 os.mkdir(op.join(tempdir, 'sample'))
 os.mkdir(op.join(tempdir, 'sample', 'mri'))
 shutil.copyfile(mri_fname, op.join(tempdir, 'sample', 'mri', 'T1.mgz'))
 report = Report(info_fname=raw_fname, subject='sample', subjects_dir=tempdir)
 with warnings.catch_warnings(record=True) as w:
  warnings.simplefilter('always')
  report.parse_folder(tempdir)
 assert_true((len(w) >= 1))
 report.save(op.join(tempdir, 'report.html'), open_browser=False)

@ testing . requires_testing_data @ requires_nibabel ( ) def test_render_mri_without_bem ( ) : tempdir = _TempDir ( ) os . mkdir ( op . join ( tempdir , 'sample' ) ) os . mkdir ( op . join ( tempdir , 'sample' , 'mri' ) ) shutil . copyfile ( mri_fname , op . join ( tempdir , 'sample' , 'mri' , 'T1.mgz' ) ) report = Report ( info_fname = raw_fname , subject = 'sample' , subjects_dir = tempdir ) with warnings . catch_warnings ( record = True ) as w : warnings . simplefilter ( 'always' ) report . parse_folder ( tempdir ) assert_true ( ( len ( w ) >= 1 ) ) report . save ( op . join ( tempdir , 'report.html' ) , open_browser = False )
test rendering mri without bem for mne report .