def init_bws_file(self):
     logger.info("Init .bws file")
     self.scheduler.set_match(self.config.scheduler_metadata["match"])
     self.config.write()
     current_round = self.scheduler.get_current_round()
     print self.scheduler.get_match_by_round(current_round)
     bws_path = get_project_file_path(self.project_name, str(current_round) + '.bws')
     bws = BWS(bws_path)
     bws.fill_section(current_round=current_round,
                     board_start=self.config.start_board_number,
                     board_end=self.config.start_board_number+self.config.board_count - 1,
                     section_id=self.config.section_id,
                     section_letter=self.config.section_letter,
                     matches=self.scheduler.get_match_by_round(current_round))
 def get_bcs_data(self):
     # Sync data
     if self.is_bcs_alive():
         current_round = self.scheduler.get_current_round()
         bws_path = get_project_file_path(self.project_name, str(current_round) + '.bws')
         bws = BWS(bws_path)
         data_ary = bws.get_recevied_date()
         logger.info("Get Data")
         for data in data_ary:
             logger.info("Data: %s" % str(data))
         bcs_config_path = get_project_file_path(self.project_name, "round"+str(current_round) + '.json')
         bcs_config = BCSConfig(bcs_config_path)
         bcs_config.load_from_bcsdata_array(data_ary)
         bcs_config.write()
         return data_ary
     else:
         return None