Skip to content

Commit

Permalink
Fix printing bug
Browse files Browse the repository at this point in the history
- Do not print ")" after setname
  • Loading branch information
migarstka committed Jan 30, 2022
1 parent 0519ef4 commit 953b7e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/printing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,13 @@ print_accelerator(s::CA.AbstractAccelerator, safeguarded::Bool, safeguarding_tol
print_accelerator(s::CA.EmptyAccelerator, safeguarded::Bool, safeguarding_tol; tab::Int64) = println("Acc:" * " "^(tab - 4) * "no acceleration")

function print_set(set::COSMO.AbstractConvexSet)
set_name = split(string(typeof(set).name), ".")[end]

set_name = split(string(typeof(set).name), ".")[end][1:end-1]
println("$(set_name) of dim: $(set.dim)")
end

function print_set(set::Union{PsdCone{T}, DensePsdCone{T}, PsdConeTriangle{T}, DensePsdConeTriangle{T}}) where {T <: AbstractFloat}
set_name = split(string(typeof(set).name), ".")[end]
set_name = split(string(typeof(set).name), ".")[end][1:end-1]
N = set.sqrt_dim
println("$(set_name) of dim: $(set.dim) ($(N)x$(N))")
end

0 comments on commit 953b7e0

Please sign in to comment.