Skip to content

Commit 1393d57

Browse files
committed
try catch on failing DERel test
1 parent 6b955f1 commit 1393d57

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ext/DiffEqFactorExt.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ module DiffEqFactorExt
55
using DifferentialEquations
66
import DifferentialEquations: solve
77

8+
using Dates
9+
810
using IncrementalInference
911
import IncrementalInference: getSample, getManifold, DERelative
1012

@@ -109,6 +111,8 @@ function _solveFactorODE!(measArr, prob, u0pts, Xtra...)
109111
return sol
110112
end
111113

114+
getSample(cf::CalcFactor{<:DERelative}) = error("getSample(::CalcFactor{<:DERelative}) not implemented yet")
115+
112116
# FIXME see #1025, `multihypo=` will not work properly yet
113117
function sampleFactor(cf::CalcFactor{<:DERelative}, N::Int = 1)
114118
#

test/runtests.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ include("testCircular.jl")
9696
include("testMixtureLinearConditional.jl")
9797
include("testFluxModelsDistribution.jl")
9898
include("testAnalysisTools.jl")
99-
# include("testDERelative.jl")
99+
try
100+
include("testDERelative.jl")
101+
catch
102+
@error "[FAILED] Fix testDERelative.jl, likely just requires implementing DiffEqFactorExt.getSample(::CalcFactor{<:DERelative})."
103+
end
100104

101105
include("testBasicParametric.jl")
102106
include("testMixtureParametric.jl")

0 commit comments

Comments
 (0)