def __init__(self, data_source, start=datetime.min.date(), end=datetime.max.date(), component_path="", output_path=None): self.start_date = get_date(start) self.end_date = get_date(end) self.component_path = component_path super(TransactionList, self).__init__(data_source, output_path)
def __init__(self, data_source, start=datetime.min.date(), end=datetime.max.date(), component_path="", output_path=None): """ """ self.start_date = get_date(start) self.end_date = get_date(end) self.component_path = component_path super(IncomeStatement, self).__init__(data_source, output_path)
def __init__(self, name, description=None, start_datetime=datetime.now(), period_duration=TimePeriod.year, period_count=1): self.clock = Clock( "Clock", start_datetime=get_date(start_datetime), timestep_period_duration=period_duration) self.period_count = period_count self.entities = [] super(TimeBasedModel, self).__init__(name, description=description)
def __init__(self, data_source, end=datetime.max.date(), output_path=None): """ """ self.end_date = get_date(end) super(BalanceSheet, self).__init__(data_source, output_path)
def test_get_date(self): dt = date(2016, 4, 14) self.assertEqual(get_date(dt), dt) self.assertEqual(get_date("2016-04-14"), dt)