|
4 | 4 |
|
5 | 5 |
|
6 | 6 | ##==============================================================================
|
7 |
| -## Remove in 0.9 |
| 7 | +## Remove in 0.10 |
8 | 8 | ##==============================================================================
|
9 | 9 |
|
10 |
| -import Base: * |
11 |
| - |
12 |
| -function *(a::Symbol, b::AbstractString) |
13 |
| - @warn "product * on ::Symbol ::String has been deprecated, please use Symbol(string(a,b)) or Symbol(a,b) directly" |
14 |
| - Symbol(string(a,b)) |
15 |
| -end |
16 |
| - |
17 |
| -setTimestamp!(f::FactorDataLevel1, ts::DateTime) = error("setTimestamp!(f::FactorDataLevel1, ts::DateTime) is deprecated") |
18 |
| - |
19 |
| -export GraphsDFG |
20 |
| -struct GraphsDFG{AbstractParams} |
21 |
| - GraphsDFG{T}() where T = error("GraphsDFG is deprecated, use LightDFG, see https://github.com/JuliaRobotics/DistributedFactorGraphs.jl/issues/398") |
22 |
| -end |
23 |
| -GraphsDFG(args...; kwargs...) = GraphsDFG{AbstractParams}() |
24 |
| -GraphsDFG{T}(args...; kwargs...) where T = GraphsDFG{T}() |
25 |
| - |
| 10 | +export listSolvekeys |
26 | 11 |
|
27 |
| -@deprecate getInternalId(args...) error("getInternalId is no longer in use") |
| 12 | +@deprecate listSolvekeys(x...) listSolveKeys(x...) |
28 | 13 |
|
29 |
| -@deprecate loadDFG(source::AbstractString, iifModule::Module, dest::AbstractDFG) loadDFG!(dest, source) |
30 |
| -@deprecate loadDFG(dest::AbstractDFG, source::AbstractString) loadDFG!(dest, source) |
| 14 | +export InferenceType |
| 15 | +export FunctorSingleton, FunctorPairwise, FunctorPairwiseMinimize |
31 | 16 |
|
32 |
| -# leave a bit longer |
33 |
| -export buildSubgraphFromLabels! |
34 |
| -function buildSubgraphFromLabels!(dfg::AbstractDFG, |
35 |
| - syms::Vector{Symbol}; |
36 |
| - subfg::AbstractDFG=LightDFG(solverParams=getSolverParams(dfg)), |
37 |
| - solvable::Int=0, |
38 |
| - allowedFactors::Union{Nothing, Vector{Symbol}}=nothing ) |
39 |
| - error("""buildSubgraphFromLabels! is deprecated |
40 |
| - NOTE buildSubgraphFromLabels! does not have a 1-1 replacement in DFG |
41 |
| - - if you have a set of variables and factors use copyGraph |
42 |
| - - if you want neighbors automatically included use buildSubgraph |
43 |
| - - if you want a clique subgraph use buildCliqueSubgraph! from IIF |
44 |
| - """) |
45 |
| - |
46 |
| -end |
| 17 | +abstract type InferenceType end |
47 | 18 |
|
48 | 19 | # These will become AbstractPrior, AbstractRelativeFactor, and AbstractRelativeFactorMinimize in 0.9.
|
49 | 20 | abstract type FunctorSingleton <: FunctorInferenceType end
|
50 | 21 | abstract type FunctorPairwise <: FunctorInferenceType end
|
51 | 22 | abstract type FunctorPairwiseMinimize <: FunctorInferenceType end
|
52 | 23 |
|
53 |
| -##============================================================================== |
54 |
| -## Remove in 0.10 |
55 |
| -##============================================================================== |
56 |
| - |
57 | 24 | # I don't know how to deprecate this, any suggestions?
|
58 | 25 | const AbstractBigDataEntry = AbstractDataEntry
|
59 | 26 |
|
|
0 commit comments