#NEWLINE# def test_ppf_ticket1131( self ) : #NEWLINE# #INDENT# vals = stats . truncnorm . ppf ( [ ( - 0.5 ) , 0 , 0.0001 , 0.5 , ( 1 - 0.0001 ) , 1 , 2 ] , ( - 1.0 ) , 1.0 , loc = ( [ 3 ] * 7 ) , scale = 2 ) #NEWLINE# expected = np . array ( [ np . nan , 1 , 1.00056419 , 3 , 4.99943581 , 5 , np . nan ] ) #NEWLINE# assert_array_almost_equal ( vals , expected )