Skip to content

Commit ca68696

Browse files
authored
Merge pull request #504 from JuliaRobotics/enh/2Q20/prtfct
enhance printFactor
2 parents 3259322 + 795d4f3 commit ca68696

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/services/CustomPrinting.jl

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

5858
if short
59-
printstyled(ioc, summary(vert),"\n", bold=true)
59+
opmemt = (getSolverData(vert).fnc |> typeof).name
60+
fct = getFactorType(vert)
61+
fctt = fct |> typeof
62+
printstyled(ioc, typeof(vert).name, "{",opmemt,"{",fctt.name,"...}}","\n", bold=true)
6063
println(ioc, " label: ", vert.label)
6164
println(ioc, " solvable: ", vert.solvable)
6265
println(ioc, " VariableOrder: ", vert._variableOrderSymbols)
@@ -65,9 +68,7 @@ function printFactor(io::IO, vert::DFGFactor;
6568
println(ioc, " timestamp: ", vert.timestamp)
6669
println(ioc, " nstime: ",vert.nstime)
6770
println(ioc, " tags: ", vert.tags)
68-
fct = getFactorType(vert)
69-
fctt = fct |> typeof
70-
println(ioc, " Type: ", fctt)
71+
println(ioc, " TYPE: ", fctt)
7172
# show(ioc, fctt)
7273
for f in setdiff(fieldnames(fctt), skipfields)
7374
printstyled(ioc, f,":\n", color=:blue)

0 commit comments

Comments
 (0)