Skip to content

Commit 6696d22

Browse files
committed
add scripts/model_figs/update_all_model_figs.py
goal is to be able to run a single script that will update all the model figures (both the interactive version for the leaderboard and the PDF version for the paper)
1 parent 5d55d51 commit 6696d22

10 files changed

+24
-1
lines changed

.github/workflows/test-scripts.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
script:
17-
- scripts/make_metrics_tables.py
17+
- scripts/model_figs/make_metrics_tables.py
1818
- scripts/analyze_element_errors.py
1919
steps:
2020
- name: Check out repository
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
"""This script runs all python files in this directory which should contain all
2+
scripts needed to generate the interactive and static PDF versions of each
3+
model-comparison figure.
4+
"""
5+
6+
7+
# %%
8+
import os
9+
import runpy
10+
from glob import glob
11+
12+
__author__ = "Janosh Riebesell"
13+
__date__ = "2023-07-14"
14+
15+
module_dir = os.path.dirname(__file__)
16+
17+
18+
# %%
19+
for file in glob(f"{module_dir}/*.py"):
20+
if file == "run_all.py":
21+
continue
22+
print(f"Running {file}...")
23+
runpy.run_path(file)

0 commit comments

Comments
 (0)