Exemplo n.º 1
0
 def setUp(self):
     self.test_length = self.TEST_LENGTH
     self.session = dbProxy.create_session(self.engine)
     # insert some rows and return their pks
     samples = util_populate_table(self.dataset, self.test_length)
     # pick a random sample
     self.i, self.test_point_pk, self.test_areas_pk, self.long, self.lat = pick_random_sample(
         self.dataset, samples)
Exemplo n.º 2
0
 def setUp(self):
     self.test_length = self.TEST_LENGTH
     self.session = dbProxy.create_session(self.engine)
     # insert some rows and return their pks
     samples = util_populate_table(self.dataset, self.test_length)
     # pick a random sample
     self.i, self.test_point_pk, self.test_areas_pk, self.long, self.lat = pick_random_sample(
         self.dataset,
         samples
     )
Exemplo n.º 3
0
 def setUp(self):
     # insert some rows and return their pks
     samples = util_populate_table(self.dataset, self.test_length)
     # pick a random sample
     self.i, self.test_point_pk, self.test_areas_pk, self.long, self.lat = pick_random_sample(
         self.dataset, samples)
     from src.formatdata import createOCOpoint
     self.luke = createOCOpoint(
         **{
             'latitude': self.dataset['latitude'][self.i],
             'longitude': self.dataset['longitude'][self.i],
             'xco2': self.dataset['xco2'][self.i],
             'date': self.dataset['date'][self.i],
         })
 def setUp(self):
     # insert some rows and return their pks
     samples = util_populate_table(self.dataset, self.test_length)
     # pick a random sample
     self.i, self.test_point_pk, self.test_areas_pk, self.long, self.lat = pick_random_sample(
         self.dataset,
         samples
     )
     from src.formatdata import createOCOpoint
     self.luke = createOCOpoint(**{
         'latitude': self.dataset['latitude'][self.i],
         'longitude': self.dataset['longitude'][self.i],
         'xco2': self.dataset['xco2'][self.i],
         'date': self.dataset['date'][self.i],
         }
     )