|
1 | 1 | ##==============================================================================
|
2 | 2 | # deprecation staging area
|
3 | 3 | ##==============================================================================
|
| 4 | +##============================================================================== |
| 5 | +## Deprecated in v0.9 Remove in the v0.10 cycle |
| 6 | +##============================================================================== |
| 7 | + |
| 8 | +# temporary promote with warning |
| 9 | +Base.promote_rule(::Type{DateTime}, ::Type{ZonedDateTime}) = DateTime |
| 10 | +function Base.convert(::Type{DateTime}, ts::ZonedDateTime) |
| 11 | + @warn "DFG now uses ZonedDateTime, temporary promoting and converting to DateTime local time" |
| 12 | + return DateTime(ts, Local) |
| 13 | +end |
| 14 | + |
| 15 | +@deprecate listSolvekeys(x...) listSolveKeys(x...) |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | +export InferenceType |
| 20 | +export FunctorSingleton, FunctorPairwise, FunctorPairwiseMinimize |
| 21 | + |
| 22 | +abstract type InferenceType end |
| 23 | + |
| 24 | +# These will become AbstractPrior, AbstractRelativeFactor, and AbstractRelativeFactorMinimize in 0.9. |
| 25 | +abstract type FunctorSingleton <: FunctorInferenceType end |
| 26 | +abstract type FunctorPairwise <: FunctorInferenceType end |
| 27 | +abstract type FunctorPairwiseMinimize <: FunctorInferenceType end |
| 28 | + |
| 29 | +# I don't know how to deprecate this, any suggestions? |
| 30 | +const AbstractBigDataEntry = AbstractDataEntry |
| 31 | + |
| 32 | +@deprecate GeneralBigDataEntry(args...; kwargs...) GeneralDataEntry(args...; kwargs...) |
| 33 | +@deprecate MongodbBigDataEntry(args...) MongodbDataEntry(args...) |
| 34 | +@deprecate FileBigDataEntry(args...) FileDataEntry(args...) |
| 35 | + |
| 36 | +@deprecate getBigData(args...) getDataBlob(args...) |
| 37 | +@deprecate addBigData!(args...) addDataBlob!(args...) |
| 38 | +@deprecate updateBigData!(args...) updateDataBlob!(args...) |
| 39 | +@deprecate deleteBigData!(args...) deleteDataBlob!(args...) |
| 40 | +@deprecate listStoreEntries(args...) listDataBlobs(args...) |
| 41 | +@deprecate hasBigDataEntry(args...) hasDataEntry(args...) |
| 42 | + |
| 43 | +@deprecate getBigDataEntry(args...) getDataEntry(args...) |
| 44 | +@deprecate addBigDataEntry!(args...) addDataEntry!(args...) |
| 45 | +@deprecate updateBigDataEntry!(args...) updateDataEntry!(args...) |
| 46 | +@deprecate deleteBigDataEntry!(args...) deleteDataEntry!(args...) |
| 47 | +@deprecate getBigDataKeys(args...) listDataEntries(args...) |
| 48 | +@deprecate getBigDataEntries(args...) getDataEntries(args...) |
| 49 | +@deprecate getDataEntryElement(args...) getDataEntryBlob(args...) |
4 | 50 |
|
5 | 51 | ##==============================================================================
|
6 | 52 | ## Remove in 0.11
|
7 | 53 | ##==============================================================================
|
8 | 54 |
|
9 |
| -@deprecate listSolvekeys(x...; kwargs...) listSolveKeys(x...;kwargs...) |
10 |
| - |
11 | 55 | @deprecate addVariableSolverData!(dfg::AbstractDFG, variablekey::Symbol, vnd::VariableNodeData, solveKey::Symbol) addVariableSolverData!(dfg, variablekey, vnd)
|
12 | 56 |
|
13 | 57 | @deprecate updatePPE!(dfg::AbstractDFG, variablekey::Symbol, ppe::AbstractPointParametricEst, ppekey::Symbol) updatePPE!(dfg, variablekey, ppe)
|
|
0 commit comments