Skip to content

Commit 9a04799

Browse files
committed
fixes
1 parent 92efb1e commit 9a04799

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/services/CustomPrinting.jl

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ function printFactor(io::IO, vert::DFGFactor;
5656
ioc = IOContext(io, :limit=>limit, :compact=>compact)
5757

5858
if short
59-
fctt = getFactorType(vert)
6059
printstyled(ioc, summary(vert),"\n", bold=true)
6160
println(ioc, " label: ", vert.label)
6261
println(ioc, " solvable: ", vert.solvable)
@@ -66,9 +65,15 @@ function printFactor(io::IO, vert::DFGFactor;
6665
println(ioc, " timestamp: ", vert.timestamp)
6766
println(ioc, " nstime: ",vert.nstime)
6867
println(ioc, " tags: ", vert.tags)
69-
println(ioc, " Type: ", typeof(fctt))
70-
println(ioc, " Fields: ", fieldnames(typeof(fctt)))
71-
show(ioc, fctt)
68+
fct = getFactorType(vert)
69+
fctt = fct |> typeof
70+
println(ioc, " Type: ", fctt)
71+
# show(ioc, fctt)
72+
for f in setdiff(fieldnames(fctt), skipfields)
73+
printstyled(ioc, f,":\n", color=:blue)
74+
show(ioc, getproperty(fct, f))
75+
println(ioc)
76+
end
7277
else
7378

7479
printstyled(ioc, summary(vert),"\n", bold=true, color=:blue)

0 commit comments

Comments
 (0)