@testing.requires_testing_data
def test_label_io_and_time_course_estimates():
 stc = read_source_estimate(stc_fname)
 label = read_label(real_label_fname)
 stc_label = stc.in_label(label)
 assert_true((len(stc_label.times) == stc_label.data.shape[1]))
 assert_true((len(stc_label.vertices[0]) == stc_label.data.shape[0]))

@ testing . requires_testing_data def test_label_io_and_time_course_estimates ( ) : stc = read_source_estimate ( stc_fname ) label = read_label ( real_label_fname ) stc_label = stc . in_label ( label ) assert_true ( ( len ( stc_label . times ) == stc_label . data . shape [ 1 ] ) ) assert_true ( ( len ( stc_label . vertices [ 0 ] ) == stc_label . data . shape [ 0 ] ) )
test io for label + stc files .