@requires_mne
def test_clean_eog_ecg():
 check_usage(mne_clean_eog_ecg)
 tempdir = _TempDir()
 raw = concatenate_raws([read_raw_fif(f) for f in [raw_fname, raw_fname, raw_fname]])
 raw.info['bads'] = ['MEG 2443']
 use_fname = op.join(tempdir, op.basename(raw_fname))
 raw.save(use_fname)
 with ArgvSetter(('-i', use_fname, '--quiet')):
  mne_clean_eog_ecg.run()
 fnames = glob.glob(op.join(tempdir, '*proj.fif'))
 assert_true((len(fnames) == 2))
 fnames = glob.glob(op.join(tempdir, '*-eve.fif'))
 assert_true((len(fnames) == 3))

@ requires_mne def test_clean_eog_ecg ( ) : check_usage ( mne_clean_eog_ecg ) tempdir = _TempDir ( ) raw = concatenate_raws ( [ read_raw_fif ( f ) for f in [ raw_fname , raw_fname , raw_fname ] ] ) raw . info [ 'bads' ] = [ 'MEG 2443' ] use_fname = op . join ( tempdir , op . basename ( raw_fname ) ) raw . save ( use_fname ) with ArgvSetter ( ( '-i' , use_fname , '--quiet' ) ) : mne_clean_eog_ecg . run ( ) fnames = glob . glob ( op . join ( tempdir , '*proj.fif' ) ) assert_true ( ( len ( fnames ) == 2 ) ) fnames = glob . glob ( op . join ( tempdir , '*-eve.fif' ) ) assert_true ( ( len ( fnames ) == 3 ) )
test mne clean_eog_ecg .