Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 12, 2024
1 parent ba66faa commit 838d9d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dvclive/live.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def __init__(
resume: bool = False,
report: Literal["md", "notebook", "html", None] = None,
save_dvc_exp: bool = True,
dvcyaml: Union[str, os.PathLike, bool, None] = "dvc.yaml",
dvcyaml: Union[str, os.PathLike, bool, None] = "dvc.yaml",
cache_images: bool = False,
exp_name: Optional[str] = None,
exp_message: Optional[str] = None,
Expand Down Expand Up @@ -269,14 +269,14 @@ def _init_dvc_file(self) -> str:
return "dvc.yaml"
if isinstance(self._dvcyaml, bool):
return "dvc.yaml"

self._dvcyaml = os.fspath(self._dvcyaml)
if (
isinstance(self._dvcyaml, str)
and os.path.basename(self._dvcyaml) == "dvc.yaml"
):
return self._dvcyaml

raise InvalidDvcyamlError

def _init_dvc_pipeline(self):
Expand Down

0 comments on commit 838d9d9

Please sign in to comment.