

def test_subregion_unary_result_shape(self):
    bound = Bounds(10, 18, 100, 108, dt.datetime(2000, 1, 1), dt.datetime(2000, 3, 1))
    new_eval = Evaluation(self.test_dataset, [self.another_test_dataset, self.another_test_dataset], [TemporalStdDev(), TemporalStdDev()], [bound, bound, bound, bound, bound])
    new_eval.run()
    self.assertTrue((len(new_eval.unary_results) == 5))
    self.assertTrue((len(new_eval.unary_results[0]) == 2))
    self.assertTrue((type(new_eval.unary_results) == type([])))
    self.assertTrue((new_eval.unary_results[0][0].shape[0] == 3))

dataset/ETHPy150Open apache/climate/ocw/tests/test_evaluation.py TestEvaluation.test_subregion_unary_result_shape/original