fix hydra_sweeps referenced before assignment

This commit is contained in:
dberenbaum
2022-11-04 15:59:26 +01:00
committed by David de la Iglesia Castro
parent 69f78d3bb6
commit 240f0ebdc3
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -32,6 +32,7 @@ def run(
entries = list(repo.experiments.celery_queue.iter_queued())
return repo.experiments.reproduce_celery(entries, jobs=jobs)
hydra_sweep = None
if params:
from dvc.utils.hydra import to_hydra_overrides
@@ -110,6 +110,11 @@ def test_hydra_compose_and_dump(
["foo=bar,baz"],
[{"params.yaml": ["foo=bar"]}, {"params.yaml": ["foo=baz"]}],
),
(
False,
[],
[{}],
),
],
)
def test_hydra_sweep(