From ffd6238e3d87cdc6faac69ea369b167ec8f61dc9 Mon Sep 17 00:00:00 2001 From: Jose Daniel Lara Date: Tue, 21 Nov 2023 14:57:26 -0700 Subject: [PATCH] fix pretty table issue --- Project.toml | 2 +- src/utils/printing.jl | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Project.toml b/Project.toml index a41f96c0bc..ab805d1d1f 100644 --- a/Project.toml +++ b/Project.toml @@ -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" diff --git a/src/utils/printing.jl b/src/utils/printing.jl index 47abf8cce6..8cdb139e29 100644 --- a/src/utils/printing.jl +++ b/src/utils/printing.jl @@ -84,7 +84,7 @@ function _show_method( PrettyTables.pretty_table( io, table; - noheader = true, + show_header = false, backend = Val(backend), title = "Duals", alignment = :l, @@ -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..., @@ -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..., @@ -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..., @@ -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, @@ -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,