From 2fc7e0083df64329d0862b9d88d5177411724c09 Mon Sep 17 00:00:00 2001 From: Nathanael Bosch Date: Fri, 9 Feb 2024 16:12:02 +0100 Subject: [PATCH] Algorithm check was bad; this fixes it --- src/algorithms.jl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/algorithms.jl b/src/algorithms.jl index 6b7e76fd9..a29bdff96 100644 --- a/src/algorithms.jl +++ b/src/algorithms.jl @@ -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`.",