def __init__(self, _snapshot_date=None, _config: ConfigObj = ConfigObj()): self.dtm = DateTimeManager(_snapshot_date=_snapshot_date, _dt_col="d_date", _dt_format="%Y-%m-%d %H:%M:%S", _date_format="%Y-%m-%d", _config=_config, _partition_col="p_yyyymm", _partition_dt_format="%Y%m") self.dtm.append_periods(["1m", "3m", "6m", "12m"]) self.config = self.dtm.get_config() Channel.__init__(self, "Store", self.dtm, self.config) self.sales = Sales(self.config) self._create_default_cores() self._create_default_sources()
def Sales(self): self.sales = Sales(self.config) return self.sales