'PGEHackathon/PGEHackathon', 'PGEHackathon/resources', 'PGEHackathon/hidden', 'PGEHackathon/truth_data', 'PGEHackathon/submissions', 'PGEHackathon/johntfoster', 'PGEHackathon/simulation_results' ] team_names = [] team_mape = [] team_total_prod = [] for repo in repos: if repo not in blocked_list: print(f"Collecting submission file for: {repo}") try: result = gh.get_file_in_repo('scoring/submission/solution.csv', repo) except: print(f"Failed for {repo}") result = None team_name = repo.split('/')[1] if result is not None: submission = pd.read_csv(StringIO(result)) submission.to_csv(f'submissions/{team_name}_solution.csv') print(f"Getting results file for: {repo}") result = gh.get_file_in_repo( f'{team_name}_result.csv', 'PGEHackathon/simulation_results')