@slow_test
def test_compute_proj_ecg_eog():
 for fun in (mne_compute_proj_ecg, mne_compute_proj_eog):
  check_usage(fun)
  tempdir = _TempDir()
  use_fname = op.join(tempdir, op.basename(raw_fname))
  bad_fname = op.join(tempdir, 'bads.txt')
  with open(bad_fname, 'w') as fid:
   fid.write('MEG 2443\n')
  shutil.copyfile(raw_fname, use_fname)
  with ArgvSetter(('-i', use_fname, ('--bad=' + bad_fname), '--rej-eeg', '150')):
   fun.run()
  fnames = glob.glob(op.join(tempdir, '*proj.fif'))
  assert_true((len(fnames) == 1))
  fnames = glob.glob(op.join(tempdir, '*-eve.fif'))
  assert_true((len(fnames) == 1))

@ slow_test def test_compute_proj_ecg_eog ( ) : for fun in ( mne_compute_proj_ecg , mne_compute_proj_eog ) : check_usage ( fun ) tempdir = _TempDir ( ) use_fname = op . join ( tempdir , op . basename ( raw_fname ) ) bad_fname = op . join ( tempdir , 'bads.txt' ) with open ( bad_fname , 'w' ) as fid : fid . write ( 'MEG 2443\n' ) shutil . copyfile ( raw_fname , use_fname ) with ArgvSetter ( ( '-i' , use_fname , ( '--bad=' + bad_fname ) , '--rej-eeg' , '150' ) ) : fun . run ( ) fnames = glob . glob ( op . join ( tempdir , '*proj.fif' ) ) assert_true ( ( len ( fnames ) == 1 ) ) fnames = glob . glob ( op . join ( tempdir , '*-eve.fif' ) ) assert_true ( ( len ( fnames ) == 1 ) )
test mne compute_proj_ecg/eog .