mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
params: read from ParamsDependency if possible (#5550)
* params: read from ParamsDependency if possible * params: introduce include_untracked flag * params: include untracked upon targets * experiments: add option to show tracked params * fixing test * params: rename tracked to deps * params: roll back to default params.yaml behavior * experiments: add option to show only used params on diff * Update dvc/command/experiments.py Co-authored-by: Jorge Orpinel <[email protected]> * Update dvc/command/experiments.py Co-authored-by: Jorge Orpinel <[email protected]> * Update dvc/command/params.py Co-authored-by: Jorge Orpinel <[email protected]> Co-authored-by: Jorge Orpinel <[email protected]>
This commit is contained in:
co-authored by
Jorge Orpinel
parent
7e5d32c2c4
commit
c39f91ecf4
@@ -38,6 +38,7 @@ def test_experiments_diff(dvc, scm, mocker):
|
||||
"HEAD~10",
|
||||
"HEAD~1",
|
||||
"--all",
|
||||
"--param-deps",
|
||||
"--show-json",
|
||||
"--show-md",
|
||||
"--old",
|
||||
@@ -53,7 +54,7 @@ def test_experiments_diff(dvc, scm, mocker):
|
||||
assert cmd.run() == 0
|
||||
|
||||
m.assert_called_once_with(
|
||||
cmd.repo, a_rev="HEAD~10", b_rev="HEAD~1", all=True
|
||||
cmd.repo, a_rev="HEAD~10", b_rev="HEAD~1", all=True, param_deps=True
|
||||
)
|
||||
|
||||
|
||||
@@ -66,6 +67,7 @@ def test_experiments_show(dvc, scm, mocker):
|
||||
"--all-branches",
|
||||
"--all-commits",
|
||||
"--sha",
|
||||
"--param-deps",
|
||||
"-n",
|
||||
"1",
|
||||
]
|
||||
@@ -84,6 +86,7 @@ def test_experiments_show(dvc, scm, mocker):
|
||||
all_commits=True,
|
||||
sha_only=True,
|
||||
num=1,
|
||||
param_deps=True,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user