@@ -105,10 +105,13 @@ function printFactor( io::IO, vert::DFGFactor;
105
105
ioc = IOContext (io, :limit => limit, :compact => compact)
106
106
107
107
if short
108
- opmemt = (getSolverData (vert). fnc |> typeof). name
108
+ opmemt = (getSolverData (vert). fnc |> typeof). name. name
109
109
fct = getFactorType (vert)
110
110
fctt = fct |> typeof
111
- printstyled (ioc, typeof (vert). name. name, " {" ,opmemt," {" ,fctt. name. name," ...}}" ," \n " , bold= true )
111
+ printstyled (ioc, typeof (vert). name. name, " {" ,opmemt," {" ,bold= true )
112
+ printstyled (ioc, fctt. name. name,bold= true , color= :blue )
113
+ printstyled (ioc, " ...}}" , bold= true )
114
+ println (ioc)
112
115
println (ioc, " timestamp: " , vert. timestamp)
113
116
println (ioc, " nstime: " , vert. nstime)
114
117
print (ioc, " label: " )
@@ -123,13 +126,15 @@ function printFactor( io::IO, vert::DFGFactor;
123
126
println (ioc, fctt)
124
127
# show(ioc, fctt)
125
128
for f in setdiff (fieldnames (fctt), skipfields)
126
- printstyled (ioc, f," :\n " , color= :magenta )
129
+ printstyled (ioc, f," :" , color= :magenta )
130
+ println (ioc)
127
131
show (ioc, getproperty (fct, f))
128
132
println (ioc)
129
133
end
130
134
else
131
135
132
- printstyled (ioc, summary (vert)," \n " , bold= true , color= :blue )
136
+ printstyled (ioc, summary (vert), bold= true , color= :blue )
137
+ println (ioc)
133
138
134
139
:solver in skipfields && push! (skipfields, :solverData )
135
140
@@ -138,7 +143,8 @@ function printFactor( io::IO, vert::DFGFactor;
138
143
nf = nfields (vert)
139
144
140
145
for f in fields
141
- printstyled (ioc, f," :\n " , color= :blue )
146
+ printstyled (ioc, f," :" , color= :blue )
147
+ println (ioc)
142
148
show (ioc, getproperty (vert, f))
143
149
println (ioc)
144
150
end
0 commit comments