From ed4e21e5dfbc68ed2e288aa15b18788bc792a431 Mon Sep 17 00:00:00 2001 From: Dave Berenbaum Date: Fri, 10 May 2024 11:01:50 -0400 Subject: [PATCH] consolidate repro warnings --- src/dvclive/live.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/dvclive/live.py b/src/dvclive/live.py index f28637d3..67d08555 100644 --- a/src/dvclive/live.py +++ b/src/dvclive/live.py @@ -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