From d17beb7dc72bf1826b589eda97d7959394a6d9fd Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Tue, 8 Aug 2023 17:02:38 +0300 Subject: [PATCH] index: plot_keys: relparts -> parts `_plot_sources` is messed up and needs a rewrite hard, but this will do for now for studio purposes. Related https://github.com/iterative/studio/pull/6541 --- dvc/repo/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/repo/index.py b/dvc/repo/index.py index 833c4496ad..fe66b65b76 100644 --- a/dvc/repo/index.py +++ b/dvc/repo/index.py @@ -413,7 +413,7 @@ def plot_keys(self) -> Dict[str, Set["DataIndexKey"]]: by_workspace[workspace].add(key) for path in self._plot_sources: - key = self.repo.fs.path.relparts(path, self.repo.root_dir) + key = self.repo.fs.path.parts(path) by_workspace["repo"].add(key) return dict(by_workspace)