diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cdd76187..f6c1cc00 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -263,6 +263,7 @@ jobs: ref: ${{ github.event.pull_request.head.ref }} repository: ${{ github.event.pull_request.head.repo.full_name }} submodules: true + token: ${{ env.GH_TOKEN }} - name: Set up Python uses: actions/setup-python@v2 diff --git a/agbenchmark/reports/processing/gen_combined_chart.py b/agbenchmark/reports/processing/gen_combined_chart.py index 784e8ff9..f7140de6 100644 --- a/agbenchmark/reports/processing/gen_combined_chart.py +++ b/agbenchmark/reports/processing/gen_combined_chart.py @@ -32,6 +32,7 @@ def generate_combined_chart() -> None: info_data = { report_name: data.benchmark_start_time for report_name, data in reports_data.items() + if report_name in categories } with open(Path(run_charts_folder) / "run_info.json", "w") as f: json.dump(info_data, f) diff --git a/agbenchmark/reports/processing/graphs.py b/agbenchmark/reports/processing/graphs.py index e84544ef..8abe9d01 100644 --- a/agbenchmark/reports/processing/graphs.py +++ b/agbenchmark/reports/processing/graphs.py @@ -11,6 +11,7 @@ from matplotlib.colors import Normalize def save_combined_radar_chart( categories: dict[str, Any], save_path: str | Path ) -> None: + categories = {k: v for k, v in categories.items() if v} if not all(categories.values()): raise Exception("No data to plot") labels = np.array( diff --git a/reports/combined_charts/run3/bar_chart.png b/reports/combined_charts/run3/bar_chart.png new file mode 100644 index 00000000..c89fb529 Binary files /dev/null and b/reports/combined_charts/run3/bar_chart.png differ diff --git a/reports/combined_charts/run3/radar_chart.png b/reports/combined_charts/run3/radar_chart.png new file mode 100644 index 00000000..a1218174 Binary files /dev/null and b/reports/combined_charts/run3/radar_chart.png differ diff --git a/reports/combined_charts/run3/run_info.json b/reports/combined_charts/run3/run_info.json new file mode 100644 index 00000000..fdbf8300 --- /dev/null +++ b/reports/combined_charts/run3/run_info.json @@ -0,0 +1 @@ +{"Auto-GPT": "2023-08-01-16:58", "BabyAGI": "2023-08-01-17:35", "beebot": "2023-08-01-17:31", "gpt-engineer": "2023-08-01-17:31", "mini-agi": "2023-08-01-16:57", "smol-developer": "2023-08-01-17:31"} \ No newline at end of file