@requires_sklearn
def test_run_ica():
 raw = read_raw_fif(raw_fname).crop(1.5, stop).load_data()
 params = []
 params += [(None, (-1), slice(2), [0, 1])]
 params += [(None, 'MEG 1531')]
 for (idx, ch_name) in product(*params):
  warnings.simplefilter('always')
  with warnings.catch_warnings(record=True):
   run_ica(raw, n_components=2, start=0, stop=6, start_find=0, stop_find=5, ecg_ch=ch_name, eog_ch=ch_name, skew_criterion=idx, var_criterion=idx, kurt_criterion=idx)

@ requires_sklearn def test_run_ica ( ) : raw = read_raw_fif ( raw_fname ) . crop ( 1.5 , stop ) . load_data ( ) params = [ ] params += [ ( None , ( - 1 ) , slice ( 2 ) , [ 0 , 1 ] ) ] params += [ ( None , 'MEG 1531' ) ] for ( idx , ch_name ) in product ( * params ) : warnings . simplefilter ( 'always' ) with warnings . catch_warnings ( record = True ) : run_ica ( raw , n_components = 2 , start = 0 , stop = 6 , start_find = 0 , stop_find = 5 , ecg_ch = ch_name , eog_ch = ch_name , skew_criterion = idx , var_criterion = idx , kurt_criterion = idx )
test run_ica function .