@testing.requires_testing_data
def test_read_labels_from_annot_annot2labels():
 label_fnames = glob.glob((label_dir + '/*.label'))
 label_fnames.sort()
 labels_mne = [read_label(fname) for fname in label_fnames]
 labels = read_labels_from_annot('sample', subjects_dir=subjects_dir)
 _assert_labels_equal(labels, labels_mne, ignore_pos=True)

@ testing . requires_testing_data def test_read_labels_from_annot_annot2labels ( ) : label_fnames = glob . glob ( ( label_dir + '/*.label' ) ) label_fnames . sort ( ) labels_mne = [ read_label ( fname ) for fname in label_fnames ] labels = read_labels_from_annot ( 'sample' , subjects_dir = subjects_dir ) _assert_labels_equal ( labels , labels_mne , ignore_pos = True )
test reading labels from parc .