Skip to content

Commit

Permalink
update comments and depr
Browse files Browse the repository at this point in the history
  • Loading branch information
dehann committed Nov 22, 2021
1 parent 967bf09 commit eef0811
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ const fetchData = getDataEntryBlob
## softtype deprections
function Base.getproperty(x::InferenceVariable, f::Symbol)
if f==:dims
Base.depwarn("Softtype $(typeof(x)), field dims is deprecated, extend and use `getDimension` instead",:getproperty)
Base.depwarn("varType $(typeof(x)), field dims is deprecated, extend and use `getDimension` instead",:getproperty)
elseif f==:manifolds
Base.depwarn("Softtype $(typeof(x)), field manifolds is deprecated, extend and use `getManifolds` instead",:getproperty)
Base.depwarn("varType $(typeof(x)), field manifolds is deprecated, extend and use `getManifold` instead",:getproperty)
else
if !(@isdefined softtypeFieldsWarnOnce)
Base.depwarn("Softtype $(typeof(x)), will be required to be a singleton type in the future and can no longer have fields. *.$f called. Further warnings are suppressed",:getproperty)
Base.depwarn("varType $(typeof(x)), will be required to be a singleton type in the future and can no longer have fields. *.$f called. Further warnings are suppressed",:getproperty)
global softtypeFieldsWarnOnce = true
end
end
Expand Down
2 changes: 1 addition & 1 deletion src/LightDFG/services/LightDFG.jl
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ Example
using IncrementalInference
# canonical example graph as example
fg = generateCanonicalFG_Kaess()
fg = generateGraph_Kaess()
@show path = findShortestPathDijkstra(fg, :x1, :x3)
@show isVariable.(fg, path)
Expand Down

0 comments on commit eef0811

Please sign in to comment.