def test_outliers(self):
        M = Mesh.TensorMesh([4])
        Q = M.getInterpolationMat(np.array([[0],[0.126],[0.127]]),'CC',zerosOutside=True)
        x = np.arange(4)+1
        self.assertTrue(np.linalg.norm(Q*x - np.r_[1,1.004,1.008]) < TOL)
        Q = M.getInterpolationMat(np.array([[-1],[0.126],[0.127]]),'CC',zerosOutside=True)
        self.assertTrue(np.linalg.norm(Q*x - np.r_[0,1.004,1.008]) < TOL)
dataset/ETHPy150Open simpeg/simpeg/tests/mesh/test_interpolation.py/TestOutliersInterp1D.test_outliers/original