def getError(self):
        funX = lambda x: np.cos(2*np.pi*x)

        ana = call1(funX, self.LOCS)

        if 'CC' == self.type:
            grid = call1(funX, self.M.gridCC)
        elif 'N' == self.type:
            grid = call1(funX, self.M.gridN)

        comp = self.M.getInterpolationMat(self.LOCS, self.type)*grid

        err = np.linalg.norm((ana - comp), 2)
        return err
dataset/ETHPy150Open simpeg/simpeg/tests/mesh/test_interpolation.py/TestInterpolation1D.getError/swapped operands of `-`