Skip to content

Commit

Permalink
fix pretty table issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Nov 21, 2023
1 parent 0da8a4e commit ffd6238
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ MathOptInterface = "1"
PowerModels = "~0.19"
PowerNetworkMatrices = "^0.9"
PowerSystems = "^3"
PrettyTables = "^1.3, 2"
PrettyTables = "2"
ProgressMeter = "^1.5"
SHA = "0.7"
Serialization = "1"
Expand Down
12 changes: 6 additions & 6 deletions src/utils/printing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function _show_method(
PrettyTables.pretty_table(
io,
table;
noheader = true,
show_header = false,
backend = Val(backend),
title = "Duals",
alignment = :l,
Expand Down Expand Up @@ -176,7 +176,7 @@ function _show_method(io::IO, template::ProblemTemplate, backend::Symbol; kwargs
io,
table;
backend = Val(backend),
noheader = true,
show_header = false,
title = "Network Model",
alignment = :l,
kwargs...,
Expand Down Expand Up @@ -338,7 +338,7 @@ function _show_method(io::IO, sequence::SimulationSequence, backend::Symbol; kwa
io,
table;
backend = Val(backend),
noheader = true,
show_header = false,
title = "Simulation Sequence",
alignment = :l,
kwargs...,
Expand Down Expand Up @@ -432,7 +432,7 @@ function _show_method(io::IO, sim::Simulation, backend::Symbol; kwargs...)
io,
table;
backend = Val(backend),
noheader = true,
show_header = false,
title = "Simulation",
alignment = :l,
kwargs...,
Expand Down Expand Up @@ -479,7 +479,7 @@ function _show_method(io::IO, results::SimulationResults, backend::Symbol; kwarg
PrettyTables.pretty_table(
io,
table;
noheader = true,
show_header = false,
backend = Val(backend),
title = "Emulator Results",
alignment = :l,
Expand Down Expand Up @@ -534,7 +534,7 @@ function _show_method(
PrettyTables.pretty_table(
io,
val;
noheader = true,
show_header = false,
backend = Val(backend),
title = "$name Problem $k Results",
alignment = :l,
Expand Down

0 comments on commit ffd6238

Please sign in to comment.