Skip to content

Commit

Permalink
[Benchmark] Remove benchmark path prefix
Browse files Browse the repository at this point in the history
To run benchmarks in `benchmark/some-suite` the script expected
`some-suite` as path which does not work well with shell auto-completion
of paths.
  • Loading branch information
marcelmaltry committed Feb 8, 2024
1 parent a831cdb commit 517219f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/Benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def run_benchmarks(args: argparse.Namespace) -> None:
if os.path.isfile(path): # path is an experiment file
benchmark_files.append(path)
else: # path is a directory containing multiple experiment files
benchmark_files.extend(glob.glob(os.path.join('benchmark', path, '**', '[!_]*.yml'), recursive=True))
benchmark_files.extend(glob.glob(os.path.join(path, '**', '[!_]*.yml'), recursive=True))

benchmark_files: list[str] = sorted(list(set(benchmark_files)))

Expand Down

0 comments on commit 517219f

Please sign in to comment.