Skip to content

Commit

Permalink
Use show method for phase in MetricsPrinter (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
darsnack authored Sep 14, 2022
1 parent 2bb79b3 commit 701e035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/callbacks/callbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ end
function print_epoch_table(mvhistory, epoch, phase)
header = vcat(["Phase", "Epoch"], string.(keys(mvhistory)))
vals = [last(mvhistory, key) |> last for key in keys(mvhistory)]
data = reshape(vcat([string(typeof(phase)), epoch], vals), 1, :)
data = reshape(vcat([string(phase), epoch], vals), 1, :)
pretty_table(data; header = header, formatters = PrettyTables.ft_round(5))
end

Expand Down

2 comments on commit 701e035

@lorenzoh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/68288

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.3 -m "<description of version>" 701e0351ee55952100761d50bbc83a0b50ac86f0
git push origin v0.3.3

Please sign in to comment.