Skip to content

Commit cd77b0d

Browse files
committed
set at_init = false for DebugIterate
1 parent 033f863 commit cd77b0d

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/plans/debug.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ mutable struct DebugIterate <: DebugAction
715715
long::Bool = false,
716716
prefix = long ? "current iterate:" : "p:",
717717
format = "$prefix %s",
718-
at_init::Bool = true,
718+
at_init::Bool = false,
719719
)
720720
return new(io, format, at_init)
721721
end

test/plans/test_debug.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Manopt.get_parameter(d::TestDebugParameterState, ::Val{:value}) = d.value
106106
@test String(take!(io)) == "Last: 1.000000"
107107
# Iterate
108108
DebugIterate(; io = io)(mp, st, 0)
109-
@test String(take!(io)) == "p: [3.0, 2.0]"
109+
@test String(take!(io)) == ""
110110
DebugIterate(; io = io)(mp, st, 1)
111111
@test String(take!(io)) == "p: $(st.p)"
112112
# Iteration

test/solvers/test_gradient_descent.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ using ManifoldDiff: grad_distance
3636
)
3737
p = get_solver_result(s)[]
3838
res_debug = String(take!(my_io))
39-
@test res_debug === "p: [-1.5707963267948966] f(x): 1.357071\n"
39+
@test res_debug === " f(x): 1.357071\n"
4040
p2 = gradient_descent(
4141
M,
4242
f,

0 commit comments

Comments
 (0)