Skip to content

Commit

Permalink
fixed leaderboard data path check
Browse files Browse the repository at this point in the history
  • Loading branch information
fwiebe committed Jan 10, 2024
1 parent 1860146 commit ab5e324
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion leaderboard/simulation/compute_leaderboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
if f[:4] == "con_":
mod = importlib.import_module(f[:-3])
if hasattr(mod, "leaderboard_config"):
if os.path.exists(mod.leaderboard_config["csv_path"]):
if os.path.exists(
os.path.join(data_dir, mod.leaderboard_config["csv_path"])
):
print(
f"Found leaderboard_config and data for {mod.leaderboard_config['name']}"
)
Expand Down

0 comments on commit ab5e324

Please sign in to comment.