def test_randomize_corrmat_correction():
 a = rs.randn(3, 20)
 p_mat = algo.randomize_corrmat(a, 'upper', False)
 p_mat_corr = algo.randomize_corrmat(a, 'upper', True)
 triu = np.triu_indices(3, 1)
 npt.assert_array_less(p_mat[triu], p_mat_corr[triu])

def test_randomize_corrmat_correction ( ) : a = rs . randn ( 3 , 20 ) p_mat = algo . randomize_corrmat ( a , 'upper' , False ) p_mat_corr = algo . randomize_corrmat ( a , 'upper' , True ) triu = np . triu_indices ( 3 , 1 ) npt . assert_array_less ( p_mat [ triu ] , p_mat_corr [ triu ] )
test that fwe correction works .