Skip to content

Commit

Permalink
Algorithm check was bad; this fixes it
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanaelbosch committed Feb 9, 2024
1 parent bcd7e04 commit 2fc7e00
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/algorithms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ function ekargcheck(alg; diffusionmodel, pn_observation_noise, kwargs...)
)
end
if (
(diffusionmodel isa FixedMVDiffusion || diffusionmodel isa DynamicMVDiffusion) &&
diffusionmodel.calibrate
) && alg == EK1
(diffusionmodel isa FixedMVDiffusion && diffusionmodel.calibrate)
|| diffusionmodel isa DynamicMVDiffusion) && alg == EK1
throw(
ArgumentError(
"The `EK1` algorithm does not support automatic calibration of multivariate diffusion models. Either use the `EK0` instead, or use a scalar diffusion model, or set `calibrate=false` and calibrate manually by optimizing `sol.pnstats.log_likelihood`.",
Expand Down

0 comments on commit 2fc7e00

Please sign in to comment.