Skip to content

Commit 12d7292

Browse files
authored
Merge pull request #920 from JuliaRobotics/22Q4/enh/mergeprogress
more dispatches on mergeDataEntries
2 parents ab3a71d + 690570e commit 12d7292

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ManifoldsBase = "3362f125-f0bb-47a3-aa74-596ffd7ef2fb"
1717
Neo4j = "d2adbeaf-5838-5367-8a2f-e46d570981db"
1818
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
1919
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
20+
ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca"
2021
RecursiveArrayTools = "731186ca-8d62-57ce-b412-fbd966d074cd"
2122
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
2223
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
@@ -40,6 +41,7 @@ ManifoldsBase = "0.11, 0.12, 0.13"
4041
Neo4j = "2"
4142
OrderedCollections = "1.4"
4243
Pkg = "1.4, 1.5"
44+
ProgressMeter = "1"
4345
RecursiveArrayTools = "2"
4446
Reexport = "1"
4547
Requires = "1"

src/DataBlobs/services/AbstractDataEntries.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,18 @@ function mergeDataEntries!(
225225
end
226226
end
227227

228+
function mergeDataEntries!(
229+
dest::AbstractDFG,
230+
src::AbstractDFG,
231+
w...;
232+
varList::AbstractVector = listVariables(dest) |> sortDFG
233+
)
234+
@showprogress 1 "merging data entries" for vl in varList
235+
mergeDataEntries!(dest, vl, src, vl, w...)
236+
end
237+
varList
238+
end
239+
228240
"""
229241
$SIGNATURES
230242

src/DistributedFactorGraphs.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ using SparseArrays
3030
using UUIDs
3131
using Pkg
3232
using TensorCast
33+
using ProgressMeter
3334

3435
# used for @defVariable
3536
import ManifoldsBase

0 commit comments

Comments
 (0)