Example #1
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = BlueDollar(self.cache)
     self.date_list = [datetime.date(2014,10,8) + datetime.timedelta(days=i)
                       for i in range(3)]
     self.values = [14.65, 14.83, 14.95]
Example #2
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = Chicago(self.cache)
     self.date_list = [datetime.date(2014,10,8) + datetime.timedelta(days=i)
                       for i in range(3)]
     self.values = [None, None, None]
Example #3
0
 def setUp(self):
     self.day = datetime.date(2014, 10, 8)
     self.date_list = map(lambda i: self.day - datetime.timedelta(days=i),
                          range(1, 8))
     self.cache = db.open()
     self.dollar = BlueDollar(self.cache)
     self.regression = statistic.TimeRegression(self.date_list,
                                                self.day,
                                                [self.dollar])
Example #4
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = SanMartin(self.cache)
     self.date_list = [datetime.date(2014, 9, 8) +
                       datetime.timedelta(days=i)
                       for i in range(3)]
     self.today_list = [datetime.datetime.now().date()]
     self.values = [2330., 2320., 2310.]
Example #5
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = Chicago(self.cache)
     self.date_list = [
         datetime.date(2014, 10, 8) + datetime.timedelta(days=i)
         for i in range(3)
     ]
     self.values = [None, None, None]
Example #6
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = BlueDollar(self.cache)
     self.date_list = [
         datetime.date(2014, 10, 8) + datetime.timedelta(days=i)
         for i in range(3)
     ]
     self.values = [14.65, 14.83, 14.95]
 def setUp(self):
     self.day = datetime.date(2014, 10, 8)
     self.date_list = map(lambda i: self.day - datetime.timedelta(days=i),
                          range(1, 8))
     self.cache = db.open()
     self.dollar = BlueDollar(self.cache)
     self.sanmartin = SanMartin(self.cache)
     self.regression = statistic.VariableRegression(
         self.date_list, self.day, [self.dollar, self.sanmartin])
Example #8
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = SanMartin(self.cache)
     self.date_list = [
         datetime.date(2014, 9, 8) + datetime.timedelta(days=i)
         for i in range(3)
     ]
     self.today_list = [datetime.datetime.now().date()]
     self.values = [2330., 2320., 2310.]
Example #9
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = BCR(self.cache)
     self.date_list = [
         datetime.date(2014, 10, 8) + datetime.timedelta(days=i)
         for i in range(3)
     ]
     self.today = datetime.datetime.now().date()
     self.yesterday = self.today - datetime.timedelta(days=1)
     self.values = {'rosario': [2260., 2300., 2300.]}
Example #10
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = Afascl(self.cache)
     self.date_list = [datetime.date(2014,10,8) + datetime.timedelta(days=i)
                       for i in range(3)]
     self.today = datetime.datetime.now().date()
     self.values = {
         'bla': [2140., 2140., 2120.],
         'san': [2260., 2300., 2300.]
     }
Example #11
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = BCR(self.cache)
     self.date_list = [datetime.date(2014, 10, 8) +
                       datetime.timedelta(days=i)
                       for i in range(3)]
     self.today = datetime.datetime.now().date()
     self.yesterday = self.today - datetime.timedelta(days=1)
     self.values = {
         'rosario': [2260., 2300., 2300.]
     }
Example #12
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = Afascl(self.cache)
     self.date_list = [
         datetime.date(2014, 10, 8) + datetime.timedelta(days=i)
         for i in range(3)
     ]
     self.today = datetime.datetime.now().date()
     self.values = {
         'bla': [2140., 2140., 2120.],
         'san': [2260., 2300., 2300.]
     }
Example #13
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
Example #14
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
Example #15
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = Variable(self.cache)
     self.today = datetime.datetime.now().date()
     self.yesterday = self.today - datetime.timedelta(days=1)
Example #16
0
 def setUp(self):
     self.remove('cache*')
     self.cache = db.open()
     self.var = Variable(self.cache)
     self.today = datetime.datetime.now().date()
     self.yesterday = self.today - datetime.timedelta(days=1)