Skip to content

Commit

Permalink
adding get_version method to Benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultLSDC committed Dec 19, 2024
1 parent 64c8bc9 commit 2979bbd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/agentlab/experiments/reproducibility_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ def _get_benchmark_version(
benchmark_name = benchmark.name

if hasattr(benchmark, "get_version"):
return benchmark.get_version()
try:
return benchmark.get_version()
except ValueError as e:
if allow_bypass_benchmark_version:
return "bypassed"
else:
raise e

# in between 2 pull requests
if benchmark_name.startswith("miniwob"):
Expand Down

0 comments on commit 2979bbd

Please sign in to comment.