From 43cfcb595a829229bb55a00104c5a28b9323e683 Mon Sep 17 00:00:00 2001 From: Brady Planden Date: Tue, 2 Jul 2024 14:40:21 +0100 Subject: [PATCH] tests: Fix incorrect sigma0 values for likelihood based spm fitting --- tests/integration/test_spm_parameterisations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_spm_parameterisations.py b/tests/integration/test_spm_parameterisations.py index 7eeb0b7c..98509769 100644 --- a/tests/integration/test_spm_parameterisations.py +++ b/tests/integration/test_spm_parameterisations.py @@ -69,10 +69,10 @@ def spm_costs(self, model, parameters, cost_class, init_soc): # Define the cost to optimise problem = pybop.FittingProblem(model, parameters, dataset, init_soc=init_soc) if cost_class in [pybop.GaussianLogLikelihoodKnownSigma]: - return cost_class(problem, sigma=[0.03, 0.03]) + return cost_class(problem, sigma=0.002) elif cost_class in [pybop.MAP]: return cost_class( - problem, pybop.GaussianLogLikelihoodKnownSigma, sigma=[0.03, 0.03] + problem, pybop.GaussianLogLikelihoodKnownSigma, sigma=0.002 ) else: return cost_class(problem)