Skip to content

Commit 749548d

Browse files
committed
get_params()
1 parent b86b815 commit 749548d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/types.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ Base.show(io::IO, t::MLFlowRun) = show(io, ShowCase(t, new_lines=true))
231231
get_info(run::MLFlowRun) = run.info
232232
get_data(run::MLFlowRun) = run.data
233233
get_run_id(run::MLFlowRun) = get_run_id(run.info)
234+
get_params(run::MLFlowRun) = get_params(run.data)
234235

235236
"""
236237
MLFlowArtifactFileInfo

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ end
100100
@test get_run_id(r) == get_run_id(get_info(r))
101101
@test sort(collect(keys(get_params(get_data(r))))) == sort(string.(keys(runparams)))
102102
@test sort(collect(values(get_params(get_data(r))))) == sort(string.(values(runparams)))
103-
103+
@test get_params(r) == get_params(get_data(r))
104104
@test deleteexperiment(mlf, exp)
105105
end
106106

0 commit comments

Comments
 (0)