def test_brainvision_data_partially_disabled_hw_filters():
 with warnings.catch_warnings(record=True) as w:
  raw = _test_raw_reader(read_raw_brainvision, vhdr_fname=vhdr_partially_disabled_hw_filter_path, montage=montage, eog=eog)
 trigger_warning = [('parse triggers that' in str(ww.message)) for ww in w]
 lowpass_warning = [('different lowpass filters' in str(ww.message)) for ww in w]
 highpass_warning = [('different highpass filters' in str(ww.message)) for ww in w]
 expected_warnings = zip(trigger_warning, lowpass_warning, highpass_warning)
 assert_true(all((any([trg, lp, hp]) for (trg, lp, hp) in expected_warnings)))
 assert_equal(raw.info['highpass'], 0.0)
 assert_equal(raw.info['lowpass'], 500.0)

def test_brainvision_data_partially_disabled_hw_filters ( ) : with warnings . catch_warnings ( record = True ) as w : raw = _test_raw_reader ( read_raw_brainvision , vhdr_fname = vhdr_partially_disabled_hw_filter_path , montage = montage , eog = eog ) trigger_warning = [ ( 'parse triggers that' in str ( ww . message ) ) for ww in w ] lowpass_warning = [ ( 'different lowpass filters' in str ( ww . message ) ) for ww in w ] highpass_warning = [ ( 'different highpass filters' in str ( ww . message ) ) for ww in w ] expected_warnings = zip ( trigger_warning , lowpass_warning , highpass_warning ) assert_true ( all ( ( any ( [ trg , lp , hp ] ) for ( trg , lp , hp ) in expected_warnings ) ) ) assert_equal ( raw . info [ 'highpass' ] , 0.0 ) assert_equal ( raw . info [ 'lowpass' ] , 500.0 )
test heterogeneous filter settings including non-numeric values .