Skip to content

Commit

Permalink
consolidate repro warnings (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Berenbaum authored May 10, 2024
1 parent f4ec8a7 commit af0a3ac
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/dvclive/live.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,11 @@ def _init_dvc_pipeline(self):
self._inside_dvc_exp = True
if self._save_dvc_exp:
logger.info("Ignoring `save_dvc_exp` because `dvc exp run` is running")
else:
# `dvc repro` execution
if self._save_dvc_exp:
logger.info("Ignoring `save_dvc_exp` because `dvc repro` is running")
# `dvc repro` execution
elif self._save_dvc_exp:
logger.warning(
"Some DVCLive features are unsupported in `dvc repro`."
"\nTo use DVCLive with a DVC Pipeline, run it with `dvc exp run`."
"Ignoring `save_dvc_exp` because `dvc repro` is running."
"\nUse `dvc exp run` to save experiment."
)
self._save_dvc_exp = False

Expand Down

0 comments on commit af0a3ac

Please sign in to comment.