Skip to content

Commit 4877053

Browse files
committed
show manifold on printVariable
1 parent 054ea14 commit 4877053

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/services/CustomPrinting.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ function printVariable( io::IO, vert::DFGVariable;
2626
println(ioc, " initilized: ", isInitialized(vert))
2727
println(ioc, " tags: ", getTags(vert))
2828
try
29-
println(ioc, " manifold: ", getManifolds(vert))
29+
print(ioc, " manifold: ")
30+
show(ioc, getManifold(vert))
31+
println(ioc, "")
3032
catch e
3133
end
3234
solk = listSolveKeys(vert) |> collect

src/services/DFGVariable.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function getDimension end
7272
$SIGNATURES
7373
Interface function to return the `<:ManifoldsBase.Manifold` object of `variableType<:InferenceVariable`, extend this function for all `Types<:InferenceVariable`.
7474
"""
75-
function getManifold end
75+
getManifold(vari::DFGVariable) = getVariableType(vari) |> getManifold
7676

7777
# """
7878
# $SIGNATURES

0 commit comments

Comments
 (0)