Skip to content

Commit 10e8270

Browse files
committed
Merge branch 'master' into 21Q3/fix/identity
2 parents 7e20966 + c7c6081 commit 10e8270

21 files changed

+827
-691
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ TimeZones = "f269a46b-ccf7-5d73-abea-4c690281aa53"
4343
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
4444

4545
[compat]
46-
ApproxManifoldProducts = "0.4.11"
46+
ApproxManifoldProducts = "0.4.12"
4747
BSON = "0.2, 0.3"
4848
Combinatorics = "1.0"
4949
DataStructures = "0.16, 0.17, 0.18"

src/DefaultNodeTypes.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11

2-
3-
4-
5-
##
2+
## TBD, will be redone together with fixes for #1010
63

74
"""
85
$SIGNATURES

src/Deprecated.jl

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ end
2525
## Deprecate code below before v0.27
2626
##==============================================================================
2727

28+
29+
# function prtslperr(s)
30+
# println(s)
31+
# sleep(0.1)
32+
# error(s)
33+
# end
34+
35+
@deprecate getKDE(w...;kw...) getBelief(w...;kw...)
36+
2837
@deprecate findRelatedFromPotential(w...;kw...) (calcProposalBelief(w...;kw...),)
2938

3039
# function generateNullhypoEntropy( val::AbstractMatrix{<:Real},
@@ -133,6 +142,29 @@ end
133142
## Deprecate code below before v0.26
134143
##==============================================================================
135144

145+
# wow, that was quite far off -- needs testing
146+
# function factorCanInitFromOtherVars(dfg::T,
147+
# fct::Symbol,
148+
# loovar::Symbol)::Tuple{Bool, Vector{Symbol}, Vector{Symbol}} where T <: AbstractDFG
149+
# #
150+
# # all variables attached to this factor
151+
# varsyms = getNeighbors(dfg, fct)
152+
#
153+
# # list of factors to use in init operation
154+
# useinitfct = Symbol[]
155+
# faillist = Symbol[]
156+
# for vsym in varsyms
157+
# xi = DFG.getVariable(dfg, vsym)
158+
# if (isInitialized(xi) && sum(useinitfct .== fct) == 0 ) || length(varsyms) == 1
159+
# push!(useinitfct, fct)
160+
# end
161+
# end
162+
#
163+
# return (length(useinitfct)==length(varsyms)&&length(faillist)==0,
164+
# useinitfct,
165+
# faillist )
166+
# end
167+
136168
@deprecate calcPerturbationFromVariable( fgc::FactorGradientsCached!, fromVar::Int, infoPerCoord::AbstractVector;tol::Real=0.02*fgc._h ) calcPerturbationFromVariable(fgc, [fromVar => infoPerCoord;], tol=tol )
137169

138170
function getVal(vA::Vector{<:DFGVariable}, solveKey::Symbol=:default)

src/FGOSUtils.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@ function manikde!(pts::AbstractVector{P},
152152
vartype::Union{InstanceType{<:InferenceVariable}, InstanceType{<:AbstractFactor}}) where P
153153
#
154154
M = getManifold(vartype)
155-
infoPerCoord=ones(AMP.getNumberCoords(M, pts[1]))
155+
# @info "WHAT" vartype, M
156+
# @show pts[1]
157+
# @show manifold_dimension(M)
158+
infoPerCoord=ones(manifold_dimension(M))
156159
return AMP.manikde!(M, pts, infoPerCoord=infoPerCoord)
157160
end
158161

0 commit comments

Comments
 (0)