@@ -56,7 +56,6 @@ function printFactor(io::IO, vert::DFGFactor;
56
56
ioc = IOContext (io, :limit => limit, :compact => compact)
57
57
58
58
if short
59
- fctt = getFactorType (vert)
60
59
printstyled (ioc, summary (vert)," \n " , bold= true )
61
60
println (ioc, " label: " , vert. label)
62
61
println (ioc, " solvable: " , vert. solvable)
@@ -66,9 +65,15 @@ function printFactor(io::IO, vert::DFGFactor;
66
65
println (ioc, " timestamp: " , vert. timestamp)
67
66
println (ioc, " nstime: " ,vert. nstime)
68
67
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
72
77
else
73
78
74
79
printstyled (ioc, summary (vert)," \n " , bold= true , color= :blue )
0 commit comments