Skip to content

Commit

Permalink
fix: path names for optimizer info
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiebergman committed Jan 8, 2025
1 parent d41daac commit ac1c6c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/test_neps_api/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_default_examples(tmp_path: Path, example_script: Path) -> None:

# Testing each folder with its corresponding expected dictionary
for folder in tmp_path.iterdir():
info_yaml_path = folder / ".optimizer_info" / "info.yaml"
info_yaml_path = folder / "optimizer_info.yaml"

assert info_yaml_path.exists()
loaded_data = yaml.safe_load(info_yaml_path.read_text())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@
"file_name": "config_select_bo.yaml",
"check_optimizer": True,
"optimizer_path": "select_bo_run_args.yaml",
"result_path": "tests_tmpdir/test_run_args_by_neps_run/optimizer_bo/.optimizer_info/info.yaml",
"result_path": "tests_tmpdir/test_run_args_by_neps_run/optimizer_bo/optimizer_info.yaml",
},
{
"file_name": "config_priorband_with_args.yaml",
"check_optimizer": True,
"optimizer_path": "priorband_args_run_args.yaml",
"result_path": "tests_tmpdir/test_run_args_by_neps_run/optimizer_priorband/.optimizer_info/info.yaml",
"result_path": "tests_tmpdir/test_run_args_by_neps_run/optimizer_priorband/optimizer_info.yaml",
},
{
"file_name": "config_hyperband_mixed_args.yaml",
"check_optimizer": True,
"optimizer_path": "hyperband_searcher_kwargs_yaml_args.yaml",
"result_path": "tests_tmpdir/test_run_args_by_neps_run/optimizer_hyperband/.optimizer_info/info.yaml",
"result_path": "tests_tmpdir/test_run_args_by_neps_run/optimizer_hyperband/optimizer_info.yaml",
"args": True,
},
],
Expand Down

0 comments on commit ac1c6c7

Please sign in to comment.