

def local_error_test(self):
    'Test MeanAbsoluteDeviationError.local_error.'
    localErrors = [0.2, 0.3, 0.4, 0.5, 0.5, 0.3, 0.2, 0.6, 0.3, 0.5, 0]
    mad = MeanAbsoluteDeviationError()
    for idx in xrange(len(self.dataOrg)):
        le = mad.local_error([self.dataOrg[idx]], [self.dataCalc[idx]])
        ple = localErrors[idx]
        self.assertEqual(str(le), str(ple))

dataset/ETHPy150Open T-002/pycast/pycast/tests/meanabsolutedeviationerrortest.py MeanAbsoluteDeviationErrorTest.local_error_test/original