#NEWLINE# def _bounds_check_int_nan_fill( self , kind = 'linear' ) : #NEWLINE# #INDENT# x = np . arange ( 10 ) . astype ( np . int_ ) #NEWLINE# y = np . arange ( 10 ) . astype ( np . int_ ) #NEWLINE# c = interp1d ( x , y , kind = kind , fill_value = np . nan , bounds_error = False ) #NEWLINE# yi = c ( ( x - 1 ) ) #NEWLINE# assert_ ( np . isnan ( yi [ 0 ] ) ) #NEWLINE# assert_array_almost_equal ( y , np . r_ [ ( np . nan , y [ : ( - 1 ) ] ) ] )