#NEWLINE# def test_linear_4d( self ) : #NEWLINE# #INDENT# ( points , values ) = self . _sample_4d_data ( ) #NEWLINE# interp_rg = RegularGridInterpolator ( points , values ) #NEWLINE# sample = np . asarray ( [ [ 0.1 , 0.1 , 10.0 , 9.0 ] ] ) #NEWLINE# wanted = interpn ( points , values , sample , method = 'linear' ) #NEWLINE# assert_array_almost_equal ( interp_rg ( sample ) , wanted )