Skip to content

Commit b86b815

Browse files
committed
get_run_id(::MLFlowRun)
1 parent c1550e1 commit b86b815

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/types.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ MLFlowRun(info::Dict{String,Any}, data::Dict{String,Any}) =
230230
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
233+
get_run_id(run::MLFlowRun) = get_run_id(run.info)
233234

234235
"""
235236
MLFlowArtifactFileInfo

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ end
9797
@test length(findrun) == 1
9898
r = only(findrun)
9999
@test get_run_id(get_info(r)) == exprun.info.run_id
100+
@test get_run_id(r) == get_run_id(get_info(r))
100101
@test sort(collect(keys(get_params(get_data(r))))) == sort(string.(keys(runparams)))
101102
@test sort(collect(values(get_params(get_data(r))))) == sort(string.(values(runparams)))
102103

0 commit comments

Comments
 (0)