

def number_of_comparisons_test(self):
    ' Test BaseErrorMeasure.initialize for behaviour if not enough dates match.'
    dataOrg = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9]]
    dataCalc = [[0, 0], [1, 1], [2, 2], [3, 3], [4, 4], [5.1, 5], [6.1, 6], [7.1, 7], [8.1, 8], [9.1, 9]]
    tsOrg = TimeSeries.from_twodim_list(dataOrg)
    tsCalc = TimeSeries.from_twodim_list(dataCalc)
    bem = BaseErrorMeasure(60.0)
    bem.local_error = (lambda a, b: 1)
    mse = MeanSquaredError(80.0)
    if mse.initialize(tsOrg, tsCalc):
        assert False
    if (not mse.initialize(tsOrg, tsCalc)):
        assert False

dataset/ETHPy150Open T-002/pycast/pycast/tests/errormeasuretest.py BaseErrorMeasureTest.number_of_comparisons_test/VarMisuse@210/283 `tsOrg`->`tsCalc`