From 51cb42d0c3c3f0acecd92abf45d426406ac57bb1 Mon Sep 17 00:00:00 2001 From: kohlhaasrebecca <rebecca.kohlhaas@outlook.com> Date: Thu, 18 Jul 2024 17:27:10 +0200 Subject: [PATCH] [Test] Fixed engine test --- src/bayesvalidrox/surrogate_models/engine.py | 2 +- tests/test_engine.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bayesvalidrox/surrogate_models/engine.py b/src/bayesvalidrox/surrogate_models/engine.py index 6f14cf3e8..ecc9e9485 100644 --- a/src/bayesvalidrox/surrogate_models/engine.py +++ b/src/bayesvalidrox/surrogate_models/engine.py @@ -1016,7 +1016,7 @@ class Engine: RMSE of the standard deviations """ - if self.Model.mc_reference is None: + if self.Model.mc_reference == {}: raise AttributeError('Model.mc_reference needs to be given to calculate the surrogate error!') # Compute the mean and std based on the MetaModel pce_means, pce_stds = self.MetaModel._compute_pce_moments() diff --git a/tests/test_engine.py b/tests/test_engine.py index 820de5b79..ae36047c5 100644 --- a/tests/test_engine.py +++ b/tests/test_engine.py @@ -34,7 +34,7 @@ import pandas as pd import pytest import sys -sys.path.append("src/") +sys.path.append("../src/") from bayesvalidrox.surrogate_models.inputs import Input from bayesvalidrox.surrogate_models.exp_designs import ExpDesigns -- GitLab