Skip to content

Commit

Permalink
Update src/dvclive/live.py
Browse files Browse the repository at this point in the history
  • Loading branch information
daavoo authored Jul 31, 2023
1 parent 3a246d7 commit 651b9d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dvclive/live.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def cache(self, path):
if self._inside_dvc_exp:
msg = f"Skipping dvc add {path} because `dvc exp run` is running."
path_stage = None
for stage in self._dvc_repo.stage.collect():
for stage in self._dvc_repo.index.stages:
for out in stage.outs:
if out.fspath == str(Path(path).absolute()):
path_stage = stage
Expand Down

0 comments on commit 651b9d4

Please sign in to comment.