@@ -292,7 +292,7 @@ def run_benchmarks(
292
292
current_bin_path : PathLike ,
293
293
previous_bin_path : PathLike ,
294
294
examples_path : PathLike ,
295
- output_path : PathLike ,
295
+ out_path : PathLike ,
296
296
excluded : list [str ] = [],
297
297
):
298
298
"""Benchmark current development version against previous release
@@ -303,7 +303,7 @@ def run_benchmarks(
303
303
current_bin_path = Path (current_bin_path ).expanduser ().absolute ()
304
304
previous_bin_path = Path (previous_bin_path ).expanduser ().absolute ()
305
305
examples_path = Path (examples_path ).expanduser ().absolute ()
306
- output_path = Path (output_path ).expanduser ().absolute ()
306
+ out_path = Path (out_path ).expanduser ().absolute ()
307
307
308
308
example_dirs = get_model_paths (examples_path , excluded = excluded )
309
309
if not any (example_dirs ):
@@ -322,7 +322,7 @@ def run_benchmarks(
322
322
)
323
323
324
324
if not old_exe .is_file ():
325
- version , download_path = fetch_latest (output_path )
325
+ version , download_path = fetch_latest (out_path )
326
326
print (f"Rebuilding latest MODFLOW 6 release { version } in development mode" )
327
327
meson_build (
328
328
project_path = download_path ,
@@ -360,7 +360,7 @@ def run_benchmarks(
360
360
write_results (
361
361
current_exe = dev_exe ,
362
362
previous_exe = old_exe ,
363
- output_path = output_path ,
363
+ output_path = out_path ,
364
364
current_total = current_total ,
365
365
previous_total = previous_total ,
366
366
lines = lines ,
@@ -374,7 +374,7 @@ def test_run_benchmarks(tmp_path):
374
374
current_bin_path = BIN_PATH ,
375
375
previous_bin_path = BIN_PATH / "rebuilt" ,
376
376
examples_path = EXAMPLES_REPO_PATH / "examples" ,
377
- output_path = tmp_path ,
377
+ out_path = tmp_path ,
378
378
excluded = ["previous" ],
379
379
)
380
380
assert (tmp_path / BENCHMARKS_FILE_NAME ).is_file ()
@@ -439,6 +439,6 @@ def test_run_benchmarks(tmp_path):
439
439
current_bin_path = current_bin_path ,
440
440
previous_bin_path = previous_bin_path ,
441
441
examples_path = examples_repo_path / "examples" ,
442
- output_path = output_path ,
442
+ out_path = output_path ,
443
443
excluded = ["previous" ],
444
444
)
0 commit comments