MCPcopy
hub / github.com/treeverse/dvc / UnresolvedExpNamesError

Class UnresolvedExpNamesError

dvc/repo/experiments/exceptions.py:66–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64
65
66class UnresolvedExpNamesError(InvalidArgumentError):
67 NAME = "experiment name"
68
69 def __init__(
70 self,
71 unresolved_list: Collection[str],
72 *args,
73 git_remote: Optional[str] = None,
74 ):
75 unresolved_names = "; ".join(unresolved_list)
76 if not git_remote:
77 if len(unresolved_list) > 1:
78 super().__init__(f"'{unresolved_names}' are not valid {self.NAME}s")
79 else:
80 super().__init__(f"'{unresolved_names}' is not a valid {self.NAME}")
81 else:
82 super().__init__(
83 f"Experiment '{unresolved_names}' does not exist in '{git_remote}'"
84 )
85
86
87class UnresolvedQueueExpNamesError(UnresolvedExpNamesError):

Callers 5

renameFunction · 0.90
celery_removeFunction · 0.90
removeFunction · 0.85
exp_refs_from_namesFunction · 0.85
pullFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected