@verbose
def filter_data(data, sfreq, l_freq, h_freq, picks=None, filter_length='auto', l_trans_bandwidth='auto', h_trans_bandwidth='auto', n_jobs=1, method='fir', iir_params=None, copy=True, phase='zero', fir_window='hamming', verbose=None):
 if (not isinstance(data, np.ndarray)):
  raise ValueError('data must be an array')
 (iir_params, method) = _check_method(method, iir_params)
 filt = create_filter(data, sfreq, l_freq, h_freq, filter_length, l_trans_bandwidth, h_trans_bandwidth, method, iir_params, phase, fir_window)
 if (method in ('fir', 'fft')):
  data = _overlap_add_filter(data, filt, None, phase, picks, n_jobs, copy)
 else:
  data = _filtfilt(data, filt, picks, n_jobs, copy)
 return data

@ verbose def filter_data ( data , sfreq , l_freq , h_freq , picks = None , filter_length = 'auto' , l_trans_bandwidth = 'auto' , h_trans_bandwidth = 'auto' , n_jobs = 1 , method = 'fir' , iir_params = None , copy = True , phase = 'zero' , fir_window = 'hamming' , verbose = None ) : if ( not isinstance ( data , np . ndarray ) ) : raise ValueError ( 'data must be an array' ) ( iir_params , method ) = _check_method ( method , iir_params ) filt = create_filter ( data , sfreq , l_freq , h_freq , filter_length , l_trans_bandwidth , h_trans_bandwidth , method , iir_params , phase , fir_window ) if ( method in ( 'fir' , 'fft' ) ) : data = _overlap_add_filter ( data , filt , None , phase , picks , n_jobs , copy ) else : data = _filtfilt ( data , filt , picks , n_jobs , copy ) return data
filter a subset of channels .