Skip to content

Commit cf5062f

Browse files
authored
Merge pull request #1066 from JuliaRobotics/master
release v0.23.6-rc1
2 parents d8efd19 + b421564 commit cf5062f

File tree

7 files changed

+45
-11
lines changed

7 files changed

+45
-11
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
version:
21-
- '~1.10.0-0'
21+
- '1.10'
2222
- 'nightly'
2323
os:
2424
- ubuntu-latest
@@ -82,7 +82,7 @@ jobs:
8282
- name: Setup julia
8383
uses: julia-actions/setup-julia@v1
8484
with:
85-
version: 1.9
85+
version: '1.10'
8686
arch: x64
8787

8888
- name: Build Docs

Project.toml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "DistributedFactorGraphs"
22
uuid = "b5cc3c7e-6572-11e9-2517-99fb8daf2f04"
3-
version = "0.23.5"
3+
version = "0.23.6"
44

55
[deps]
66
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
@@ -37,27 +37,39 @@ GraphPlot = "a2cc645c-3eea-5389-862e-a155d0052231"
3737
DFGPlots = "GraphPlot"
3838

3939
[compat]
40+
Aqua = "0.8"
41+
Base64 = "1.10"
4042
CSV = "0.10"
4143
CodecZlib = "0.7"
4244
Colors = "0.10, 0.11, 0.12"
45+
DataStructures = "0.18"
46+
Dates = "1.10"
4347
Distributions = "0.23, 0.24, 0.25"
4448
DocStringExtensions = "0.8, 0.9"
4549
FileIO = "1"
4650
GraphPlot = "0.5.0"
4751
Graphs = "1.4"
52+
InteractiveUtils = "1.10"
4853
JSON3 = "1"
54+
LinearAlgebra = "1.10"
4955
ManifoldsBase = "0.14, 0.15"
56+
Manifolds = "0.9"
5057
OrderedCollections = "1.4"
5158
Pkg = "1.4, 1.5"
5259
ProgressMeter = "1"
53-
RecursiveArrayTools = "2"
60+
RecursiveArrayTools = "2, 3"
5461
Reexport = "1"
62+
SHA = "0.7, 1"
63+
SparseArrays = "1.10"
5564
StaticArrays = "1"
65+
Statistics = "1.10"
5666
StructTypes = "1"
5767
Tar = "1.9"
68+
Test = "1.10"
5869
TensorCast = "0.3.3, 0.4"
5970
TimeZones = "1.3.1"
60-
julia = "1.9"
71+
UUIDs = "1.10"
72+
julia = "1.10"
6173

6274
[extras]
6375
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"

src/Common.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,5 +124,16 @@ end
124124
## Additional Downstream dispatches
125125
## =================================
126126

127+
"""
128+
$SIGNATURES
129+
130+
Default non-parametric graph solution.
131+
"""
127132
function solveGraph! end
133+
134+
"""
135+
$SIGNATURES
136+
137+
Standard parametric graph solution (Experimental).
138+
"""
128139
function solveGraphParametric! end

src/FileDFG/services/FileDFG.jl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ loadDFG!(dfg, "/tmp/savedgraph.tar.gz")
9191
# Use the DFG as you do normally.
9292
ls(dfg)
9393
```
94+
95+
See also: [`loadDFG`](@ref), [`saveDFG`](@ref)
9496
"""
9597
function loadDFG!(
9698
dfgLoadInto::AbstractDFG,
@@ -218,6 +220,13 @@ function loadDFG!(
218220
return dfgLoadInto
219221
end
220222

223+
"""
224+
$SIGNATURES
225+
226+
Convenience graph loader into a default `LocalDFG`.
227+
228+
See also: [`loadDFG!`](@ref), [`saveDFG`](@ref)
229+
"""
221230
function loadDFG(file::AbstractString)
222231

223232
# add if doesn't have .tar.gz extension
@@ -238,7 +247,7 @@ function loadDFG(file::AbstractString)
238247
fgPacked = JSON3.read(jstr, GraphsDFGs.PackedGraphsDFG)
239248
dfg = GraphsDFGs.unpackDFGMetadata(fgPacked)
240249

241-
@debug "DFG.loadDFG! is deleting a temp folder created during unzip, $loaddir"
250+
@debug "DFG.loadDFG is deleting a temp folder created during unzip, $loaddir"
242251
# cleanup temporary folder
243252
Base.rm(loaddir; recursive = true, force = true)
244253

src/services/AbstractDFG.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,13 +1076,15 @@ function copyGraph!(
10761076
overwriteDest::Bool = false,
10771077
deepcopyNodes::Bool = false,
10781078
verbose::Bool = false,
1079+
showprogress::Bool = verbose,
10791080
)
10801081
# Split into variables and factors
10811082
sourceVariables = map(vId -> getVariable(sourceDFG, vId), variableLabels)
10821083
sourceFactors = map(fId -> getFactor(sourceDFG, fId), factorLabels)
10831084

10841085
# Now we have to add all variables first,
1085-
@showprogress "copy variables" for variable in sourceVariables
1086+
@showprogress desc = "copy variables" enabled = showprogress for variable in
1087+
sourceVariables
10861088
variableCopy = deepcopyNodes ? deepcopy(variable) : variable
10871089
if !exists(destDFG, variable)
10881090
addVariable!(destDFG, variableCopy)
@@ -1093,7 +1095,7 @@ function copyGraph!(
10931095
end
10941096
end
10951097
# And then all factors to the destDFG.
1096-
@showprogress "copy factors" for factor in sourceFactors
1098+
@showprogress desc = "copy factors" enabled = showprogress for factor in sourceFactors
10971099
# Get the original factor variables (we need them to create it)
10981100
sourceFactorVariableIds = collect(factor._variableOrderSymbols)
10991101
# Find the labels and associated variables in our new subgraph

src/services/CustomPrinting.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function printFactor(
143143
for f in setdiff(fieldnames(fctt), skipfields)
144144
printstyled(ioc, f, ":"; color = :magenta)
145145
println(ioc)
146-
show(ioc, getproperty(fct, f))
146+
show(ioc, typeof(getproperty(fct, f)).name.name)
147147
println(ioc)
148148
end
149149
else

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ end
148148
Aqua.test_ambiguities([DistributedFactorGraphs])
149149
Aqua.test_unbound_args(DistributedFactorGraphs)
150150
Aqua.test_undefined_exports(DistributedFactorGraphs)
151-
Aqua.test_piracy(DistributedFactorGraphs)
151+
Aqua.test_piracies(DistributedFactorGraphs)
152152
Aqua.test_project_extras(DistributedFactorGraphs)
153153
Aqua.test_stale_deps(DistributedFactorGraphs; ignore = [:Colors])
154154
Aqua.test_deps_compat(DistributedFactorGraphs)
155-
Aqua.test_project_toml_formatting(DistributedFactorGraphs)
155+
# Aqua.test_project_toml_formatting(DistributedFactorGraphs) # deprecated in Aqua.jl v0.8
156156
end

0 commit comments

Comments
 (0)