Skip to content

Commit

Permalink
Add events function to helpers.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
VaiTon committed Apr 26, 2024
1 parent e0dcbb3 commit 3e2d53c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Deserialization/helpers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,18 @@ function steps(tbl; kwargs...)

return steps
end

"""
events(logger)
Returns a list of all the events serialized by `logger`.
"""
function events(tbl; kwargs...)
events = []

map_events(tbl; kwargs...) do ev
push!(events, ev)
end

return events
end

0 comments on commit 3e2d53c

Please sign in to comment.