Beispiel #1
0
 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)
Beispiel #2
0
 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)
Beispiel #3
0
 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)
Beispiel #4
0
 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)
Beispiel #5
0
 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)
Beispiel #6
0
 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)
Beispiel #7
0
 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)
Beispiel #8
0
 def test_get_date(self):
     dt = date(2016, 4, 14)
     self.assertEqual(get_date(dt), dt)
     self.assertEqual(get_date("2016-04-14"), dt)
Beispiel #9
0
 def test_get_date(self):
     dt = date(2016, 4, 14)
     self.assertEqual(get_date(dt), dt)
     self.assertEqual(get_date("2016-04-14"), dt)
Beispiel #10
0
 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)