def test_summarize_clusters():
 clu = (np.random.random([1, 20484]), [(np.array([0]), np.array([0, 2, 4]))], np.array([0.02, 0.1]), np.array([12, (-14), 30]))
 stc_sum = summarize_clusters_stc(clu)
 assert_true((stc_sum.data.shape[1] == 2))
 clu[2][0] = 0.3
 assert_raises(RuntimeError, summarize_clusters_stc, clu)

def test_summarize_clusters ( ) : clu = ( np . random . random ( [ 1 , 20484 ] ) , [ ( np . array ( [ 0 ] ) , np . array ( [ 0 , 2 , 4 ] ) ) ] , np . array ( [ 0.02 , 0.1 ] ) , np . array ( [ 12 , ( - 14 ) , 30 ] ) ) stc_sum = summarize_clusters_stc ( clu ) assert_true ( ( stc_sum . data . shape [ 1 ] == 2 ) ) clu [ 2 ] [ 0 ] = 0.3 assert_raises ( RuntimeError , summarize_clusters_stc , clu )
test cluster summary stcs .