Skip to content

Commit 328d190

Browse files
authored
Merge pull request #1733 from JuliaRobotics/23Q3/deps/dropabstrelroots
Drop AbstractRelativeRoots
2 parents ac472a9 + 816ea1b commit 328d190

File tree

7 files changed

+24
-24
lines changed

7 files changed

+24
-24
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- master
7-
- develop
87
- release**
98
workflow_dispatch:
109
jobs:
@@ -55,7 +54,7 @@ jobs:
5554
arch:
5655
- x64
5756
version:
58-
- '1.9'
57+
- '~1.10.0-0'
5958
group:
6059
- 'basic_functional_group'
6160
steps:
@@ -97,7 +96,7 @@ jobs:
9796
arch:
9897
- x64
9998
version:
100-
- '1.9'
99+
- '~1.10.0-0'
101100
group:
102101
- 'test_cases_group'
103102
steps:

src/Deprecated.jl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,23 @@ end
124124
## Deprecate code below before v0.35
125125
##==============================================================================
126126

127+
function _checkErrorCCWNumerics(
128+
ccwl::Union{CommonConvWrapper{F}, CommonConvWrapper{Mixture{N_, F, S, T}}},
129+
testshuffle::Bool = false,
130+
) where {N_, F <: AbstractRelativeRoots, S, T}
131+
#
132+
# error("<:AbstractRelativeRoots is obsolete, use one of the other <:AbstractRelative types instead.")
133+
# TODO get xDim = getDimension(getVariableType(Xi[sfidx])) but without having Xi
134+
if testshuffle || ccwl.partial
135+
error(
136+
"<:AbstractRelativeRoots factors with less or more measurement dimensions than variable dimensions have been discontinued, rather use <:AbstractManifoldMinimize.",
137+
)
138+
# elseif !(_getZDim(ccwl) >= ccwl.xDim && !ccwl.partial)
139+
# error("Unresolved numeric <:AbstractRelativeRoots solve case")
140+
end
141+
return nothing
142+
end
143+
127144
# should probably deprecate the abstract type approach?
128145
abstract type _AbstractThreadModel end
129146

src/ExportAPI.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export AbstractDFG,
3030
# Inference types
3131
export AbstractPackedFactor, AbstractFactor
3232
export AbstractPrior, AbstractRelative
33-
export AbstractRelativeRoots, AbstractRelativeMinimize, AbstractManifoldMinimize
33+
export AbstractRelativeMinimize, AbstractManifoldMinimize
3434

3535
# not sure if this is necessary
3636
export convert, *

src/services/CalcFactor.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ function _setCCWDecisionDimsConv!(
294294
F <: Union{
295295
AbstractManifoldMinimize,
296296
AbstractRelativeMinimize,
297-
AbstractRelativeRoots,
297+
# AbstractRelativeRoots,
298298
AbstractPrior,
299299
},
300300
S,

src/services/FactorGradients.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export checkGradientsToleranceMask, calcPerturbationFromVariable
7878
function _prepFactorGradientLambdas(
7979
fct::Union{
8080
<:AbstractRelativeMinimize,
81-
<:AbstractRelativeRoots,
81+
# <:AbstractRelativeRoots,
8282
<:AbstractManifoldMinimize,
8383
},
8484
measurement,
@@ -171,7 +171,7 @@ end
171171
function FactorGradientsCached!(
172172
fct::Union{
173173
<:AbstractRelativeMinimize,
174-
<:AbstractRelativeRoots,
174+
# <:AbstractRelativeRoots,
175175
<:AbstractManifoldMinimize,
176176
},
177177
varTypes::Tuple,

src/services/NumericalCalculations.jl

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,6 @@ function _checkErrorCCWNumerics(
1313
return nothing
1414
end
1515

16-
function _checkErrorCCWNumerics(
17-
ccwl::Union{CommonConvWrapper{F}, CommonConvWrapper{Mixture{N_, F, S, T}}},
18-
testshuffle::Bool = false,
19-
) where {N_, F <: AbstractRelativeRoots, S, T}
20-
#
21-
# error("<:AbstractRelativeRoots is obsolete, use one of the other <:AbstractRelative types instead.")
22-
# TODO get xDim = getDimension(getVariableType(Xi[sfidx])) but without having Xi
23-
if testshuffle || ccwl.partial
24-
error(
25-
"<:AbstractRelativeRoots factors with less or more measurement dimensions than variable dimensions have been discontinued, rather use <:AbstractManifoldMinimize.",
26-
)
27-
# elseif !(_getZDim(ccwl) >= ccwl.xDim && !ccwl.partial)
28-
# error("Unresolved numeric <:AbstractRelativeRoots solve case")
29-
end
30-
return nothing
31-
end
3216

3317
function _perturbIfNecessary(
3418
fcttype::Union{F, <:Mixture{N_, F, S, T}},

src/services/RequireInteractiveUtils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Return all factors currently registered in the workspace.
1414
function getCurrentWorkspaceFactors()
1515
return [
1616
InteractiveUtils.subtypes(AbstractPrior)...,
17-
InteractiveUtils.subtypes(AbstractRelativeRoots)...,
17+
# InteractiveUtils.subtypes(AbstractRelativeRoots)...,
1818
InteractiveUtils.subtypes(AbstractRelativeMinimize)...,
1919
]
2020
end

0 commit comments

Comments
 (0)