#NEWLINE# def test_correct_on_2D_axis0( self ) : #NEWLINE# #INDENT# a = np . array ( [ [ 0.0 , 1.0 , 3.0 ] , [ 2.0 , 3.0 , 3.0 ] ] ) #NEWLINE# norm = normalize_sum ( a , axis = 0 ) #NEWLINE# ok = np . array ( [ [ 0.0 , 0.25 , 0.5 ] , [ 1.0 , 0.75 , 0.5 ] ] ) #NEWLINE# self . assertTrue ( np . alltrue ( ( ok == ok ) ) )