@testing.requires_testing_data
@requires_freesurfer
@requires_nibabel()
def test_get_volume_label_names():
 aseg_fname = op.join(subjects_dir, 'sample', 'mri', 'aseg.mgz')
 (label_names, label_colors) = get_volume_labels_from_aseg(aseg_fname, return_colors=True)
 assert_equal(label_names.count('Brain-Stem'), 1)
 assert_equal(len(label_colors), len(label_names))

@ testing . requires_testing_data @ requires_freesurfer @ requires_nibabel ( ) def test_get_volume_label_names ( ) : aseg_fname = op . join ( subjects_dir , 'sample' , 'mri' , 'aseg.mgz' ) ( label_names , label_colors ) = get_volume_labels_from_aseg ( aseg_fname , return_colors = True ) assert_equal ( label_names . count ( 'Brain-Stem' ) , 1 ) assert_equal ( len ( label_colors ) , len ( label_names ) )
test reading volume label names .