Skip to content

Commit

Permalink
fix: Create default path to avoid warning
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiebergman committed Sep 17, 2024
1 parent defa370 commit 43a8dbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neps/optimizers/bayesian_optimization/models/ftpfn.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def _download_workaround_for_ifbo_issue_10(path: Path | None, version: str) -> P
from ifbo.download import FILE_URL, FILENAME
from ifbo.surrogate import _resolve_model_path

target_path = _resolve_model_path(path) # type: ignore
target_path = Path(path) if path is not None else Path.cwd().resolve()
target_path.mkdir(parents=True, exist_ok=True)

_target_zip_path = target_path / FILENAME(version)
Expand Down

0 comments on commit 43a8dbe

Please sign in to comment.