def test_tf_linear_interp1d_against_scipy_map(self):
    'Tests parity of TF linear interpolation with SciPy for simple mapping.'
    length = 10
    np_x = np.linspace(0, 1, length)
    np_y_map = np.repeat(0.5, length)
    test_data_np = np.linspace(0, 1, (length * 10))
    scipy_map_outputs = self._get_scipy_interp1d(test_data_np, np_x, np_y_map)
    np_tf_map_outputs = self._get_tf_interp1d(test_data_np, np_x, np_y_map)
    self.assertAllClose(scipy_map_outputs, np_tf_map_outputs)
Tests parity of TF linear interpolation with SciPy for simple mapping.
def test_tf_linear_interp1d_against_scipy_map(self):
    
    length = 10
    np_x = np.linspace(0, 1, length)
    np_y_map = np.repeat(0.5, length)
    test_data_np = np.linspace(0, 1, (length * 10))
    scipy_map_outputs = self._get_scipy_interp1d(test_data_np, np_x, np_y_map)
    np_tf_map_outputs = self._get_tf_interp1d(test_data_np, np_x, np_y_map)
    self.assertAllClose(scipy_map_outputs, np_tf_map_outputs)