def make_tour_model_from_raw_user_data(user_id): try: list_of_cluster_data = eamtmcp.main(user_id, False) esdcpq.create_places(list_of_cluster_data, user_id) esdctq.set_up_trips(list_of_cluster_data, user_id) except ValueError as e: logging.debug("Got ValueError %s while creating tour model, skipping it..." % e)
def make_tour_model_from_raw_user_data(user_id): try: list_of_cluster_data = eamtmcp.main(user_id) esdcpq.create_places(list_of_cluster_data, user_id) esdctq.set_up_trips(list_of_cluster_data, user_id) except ValueError as e: logging.debug( "Got ValueError %s while creating tour model, skipping it..." % e)
def testCreatePlace(self): etc.setupRealExample(self, "emission/tests/data/real_examples/shankari_2015-aug-27") eaicf.filter_accuracy(self.testUUID) estfm.move_all_filters_to_data() eaist.segment_current_trips(self.testUUID) eaiss.segment_current_sections(self.testUUID) data = eamtcp.main(self.testUUID) esdcpq.create_places(data, self.testUUID) places = esdcpq.get_all_common_places_for_user(self.testUUID) places_list = [] for p in places: places_list.append(esdcpq.make_common_place(p)) for place in places_list: self.assertIsNotNone(place.location) self.assertIsNotNone(place["successors"])