def test_get_day_index(self): rd = self.get_request_dataset() dates = rd.ds.temporal.value qdt = QEDDynamicPercentileThreshold() di = qdt._get_day_index_(dates) self.assertEqual((di['index'] == 366).sum(), 1) return (di)
def test_get_day_index(self): rd = self.get_request_dataset() dates = rd.ds.temporal.value qdt = QEDDynamicPercentileThreshold() di = qdt._get_day_index_(dates) self.assertEqual((di['index'] == 366).sum(),1) return(di)