

def initialize_test(self):
    'Test if calculate throws an error as expected.'
    data = [[0.0, 0.0], [1, 0.1], [2, 0.2], [3, 0.3], [4, 0.4]]
    tsOrg = TimeSeries.from_twodim_list(data)
    tsCalc = TimeSeries.from_twodim_list(data)
    bem = BaseErrorMeasure()
    try:
        bem.initialize(tsOrg, bem)
    except NotImplementedError:
        pass
    else:
        assert False
    assert (not bem.initialize(tsOrg, TimeSeries()))

dataset/ETHPy150Open T-002/pycast/pycast/tests/errormeasuretest.py BaseErrorMeasureTest.initialize_test/VarMisuse@80/118 `tsCalc`->`bem`