Skip to content

Commit feb7a48

Browse files
committed
Merge branch 'master' into feature/20Q1/VNDCondition
2 parents 8533f46 + 581e3ae commit feb7a48

25 files changed

+1029
-487
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
if: NOT branch =~ ^release.*$
2727
- arch: arm64
2828
- stage: "Documentation"
29-
julia: 1.2
29+
julia: 1.3
3030
os: linux
3131
script:
3232
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'

Project.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
name = "DistributedFactorGraphs"
22
uuid = "b5cc3c7e-6572-11e9-2517-99fb8daf2f04"
3-
version = "0.6.0"
3+
version = "0.7.0"
44

55
[deps]
66
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
77
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
88
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
99
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
1010
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
11-
GraphPlot = "a2cc645c-3eea-5389-862e-a155d0052231"
1211
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
1312
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
1413
JSON2 = "2535ab7d-5cd8-5a07-80ac-9b1792aadce3"
@@ -24,7 +23,6 @@ Unmarshal = "cbff2730-442d-58d7-89d1-8e530c41eb02"
2423
Colors = "0.8, 0.9, 0.10, 0.11"
2524
Distributions = "0.18, 0.19, 0.20, 0.21, 0.22, 0.23, 0.24, 0.25, 1"
2625
DocStringExtensions = "0.8, 0.9, 0.10, 1"
27-
GraphPlot = "0.3.1, 0.4"
2826
Graphs = "0.10.2, 0.11, 1"
2927
JSON = "0.21"
3028
JSON2 = "0.3.1"

attic/sandbox.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function copyGraph!(destDFG::AbstractDFG, sourceDFG::AbstractDFG, variableFactor
3232
# Only if we have all of them should we add it (otherwise strange things may happen on evaluation)
3333
if includeOrphanFactors || length(factVariableIds) == length(sourceFactorVariableIds)
3434
if !exists(destDFG, factor)
35-
addFactor!(destDFG, factVariableIds, factor)
35+
addFactor!(destDFG, factor)
3636
end
3737
end
3838
end

docs/extra/CoreAPI.fods

Lines changed: 906 additions & 366 deletions
Large diffs are not rendered by default.

docs/src/imgs/CoreAPI.png

220 KB
Loading

docs/src/ref_api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
# Common API Interface
2+
3+
![imgs/CoreAPI.png](imgs/CoreAPI.png)

src/BigData/services/AbstractDataStore.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ Returns the list of copied entries.
4949
"""
5050
function copyStore(sourceStore::D1, destStore::D2; sourceEntries=listEntries(sourceStore))::Vector{E} where {T, D1 <: AbstractDataStore{T}, D2 <: AbstractDataStore{T}, E <: AbstractBigDataEntry}
5151
# Quick check
52-
destEntries = listEntries(destStore)
52+
destEntries = listStoreEntries(destStore)
5353
typeof(sourceEntries) != typeof(destEntries) && error("Can't copy stores, source has entries of type $(typeof(sourceEntries)), destination has entries of type $(typeof(destEntries)).")
5454
# Same source/destination check
5555
sourceStore == destStore && error("Can't specify same store for source and destination.")
5656
# Otherwise, continue
5757
for sourceEntry in sourceEntries
58-
addData!(destStore, deepcopy(sourceEntry), getData(sourceStore, sourceEntry))
58+
addBigData!(destStore, deepcopy(sourceEntry), getBigData(sourceStore, sourceEntry))
5959
end
6060
return sourceEntries
6161
end

src/CloudGraphsDFG/services/CloudGraphsDFG.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,6 @@ function getFactor(dfg::CloudGraphsDFG, label::Union{Symbol, String})::DFGFactor
201201

202202
# Lastly, rebuild the metadata
203203
factor = dfg.rebuildFactorMetadata!(dfg, factor)
204-
# GUARANTEED never to bite us in the future...
205-
# ... TODO: refactor if changed: https://github.com/JuliaRobotics/IncrementalInference.jl/issues/350
206-
getSolverData(factor).fncargvID = factor._variableOrderSymbols
207204

208205
return factor
209206
end

src/Deprecated.jl

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,6 @@
22
# deprecation staging area
33
##==============================================================================
44

5-
#TODO look what should already be removed
6-
7-
##==============================================================================
8-
## Remove in 0.6.0 or 0.6.1?
9-
##==============================================================================
10-
11-
@deprecate getfnctype(args...) getFactorType(args...)
12-
13-
@deprecate getEstimate(v::VariableDataLevel1, key::Symbol=:default) getVariablePPE(v, key)
14-
15-
@deprecate estimate(v::VariableDataLevel1, key::Symbol=:default) getVariablePPE(v, key)
16-
17-
@deprecate getEstimates(v::VariableDataLevel1) getPPEDict(v)
18-
19-
@deprecate estimates(v::VariableDataLevel1) getPPEDict(v)
20-
21-
@deprecate softtype(v::VariableDataLevel1) getSofttype(v)
22-
23-
@deprecate label(v::DataLevel0) getLabel(v)
24-
25-
@deprecate tags(v::DataLevel0) getTags(v)
26-
27-
@deprecate getData(v::DFGVariable; solveKey::Symbol=:default) getSolverData(v, solveKey)
28-
29-
@deprecate setSolverData(v::DFGVariable, data::VariableNodeData, key::Symbol=:default) setSolverData!(v, data, key)
30-
31-
@deprecate data(f::DFGFactor) getSolverData(f)
32-
33-
34-
@deprecate getData(f::DFGFactor) getSolverData(f)
35-
36-
375
##==============================================================================
386
## Remove in 0.7
397
##==============================================================================
@@ -190,3 +158,7 @@ function buildSubgraphFromLabels(dfg::G,
190158
end
191159

192160
@deprecate sortVarNested(vars::Vector{Symbol}) sortDFG(vars)
161+
162+
163+
#NOTE This one is still used in IIF so maybe leave a bit longer
164+
@deprecate getfnctype(args...) getFactorType(args...)

src/DistributedFactorGraphs.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ using SparseArrays
3030
##==============================================================================
3131
# Exports
3232
##==============================================================================
33-
33+
const DFG = DistributedFactorGraphs
34+
export DFG
3435
##------------------------------------------------------------------------------
3536
## DFG
3637
##------------------------------------------------------------------------------

0 commit comments

Comments
 (0)