def test_bdf_data():
 raw_py = _test_raw_reader(read_raw_edf, input_fname=bdf_path, montage=montage_path, eog=eog, misc=misc, exclude=['M2', 'IEOG'])
 assert_true(('RawEDF' in repr(raw_py)))
 picks = pick_types(raw_py.info, meg=False, eeg=True, exclude='bads')
 (data_py, _) = raw_py[picks]
 raw_eeglab = io.loadmat(bdf_eeglab_path)
 raw_eeglab = (raw_eeglab['data'] * 1e-06)
 data_eeglab = raw_eeglab[picks]
 assert_array_almost_equal(data_py, data_eeglab, 8)
 assert_true(raw_py.info['chs'][0]['loc'].any())
 assert_true(raw_py.info['chs'][25]['loc'].any())
 assert_true(raw_py.info['chs'][63]['loc'].any())

def test_bdf_data ( ) : raw_py = _test_raw_reader ( read_raw_edf , input_fname = bdf_path , montage = montage_path , eog = eog , misc = misc , exclude = [ 'M2' , 'IEOG' ] ) assert_true ( ( 'RawEDF' in repr ( raw_py ) ) ) picks = pick_types ( raw_py . info , meg = False , eeg = True , exclude = 'bads' ) ( data_py , _ ) = raw_py [ picks ] raw_eeglab = io . loadmat ( bdf_eeglab_path ) raw_eeglab = ( raw_eeglab [ 'data' ] * 1e-06 ) data_eeglab = raw_eeglab [ picks ] assert_array_almost_equal ( data_py , data_eeglab , 8 ) assert_true ( raw_py . info [ 'chs' ] [ 0 ] [ 'loc' ] . any ( ) ) assert_true ( raw_py . info [ 'chs' ] [ 25 ] [ 'loc' ] . any ( ) ) assert_true ( raw_py . info [ 'chs' ] [ 63 ] [ 'loc' ] . any ( ) )
test reading raw bdf files .