@testing.requires_testing_data
def test_read_curv():
 fname_curv = op.join(data_path, 'subjects', 'fsaverage', 'surf', 'lh.curv')
 fname_surf = op.join(data_path, 'subjects', 'fsaverage', 'surf', 'lh.inflated')
 bin_curv = read_curvature(fname_curv)
 rr = read_surface(fname_surf)[0]
 assert_true((len(bin_curv) == len(rr)))
 assert_true(np.logical_or((bin_curv == 0), (bin_curv == 1)).all())

@ testing . requires_testing_data def test_read_curv ( ) : fname_curv = op . join ( data_path , 'subjects' , 'fsaverage' , 'surf' , 'lh.curv' ) fname_surf = op . join ( data_path , 'subjects' , 'fsaverage' , 'surf' , 'lh.inflated' ) bin_curv = read_curvature ( fname_curv ) rr = read_surface ( fname_surf ) [ 0 ] assert_true ( ( len ( bin_curv ) == len ( rr ) ) ) assert_true ( np . logical_or ( ( bin_curv == 0 ) , ( bin_curv == 1 ) ) . all ( ) )
test reading curvature data .