From 5dae6fb9c2b25df0879a77928ebca796888fdff8 Mon Sep 17 00:00:00 2001
From: Alina Lacheim <a.lacheim@outlook.de>
Date: Tue, 3 Dec 2024 00:00:10 +0100
Subject: [PATCH] fixed ishigami example

---
 examples/ishigami/example_ishigami.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/examples/ishigami/example_ishigami.py b/examples/ishigami/example_ishigami.py
index 16ec14319..19aac946a 100644
--- a/examples/ishigami/example_ishigami.py
+++ b/examples/ishigami/example_ishigami.py
@@ -106,6 +106,7 @@ if __name__ == "__main__":
     ExpDesign = ExpDesigns(Inputs)
 
     # One-shot (normal) or Sequential Adaptive (sequential) Design
+    ExpDesign.method = 'normal'
     ExpDesign.n_init_samples = 50
 
     # Sampling methods
@@ -185,7 +186,7 @@ if __name__ == "__main__":
     PostPCE.check_accuracy(n_samples=3000)
 
     # Plot the evolution of the KLD,BME, and Modified LOOCV error
-    if MetaModelOpts.ExpDesign.method == 'sequential':
+    if ExpDesign.method == 'sequential':
         PostPCE.plot_seq_design_diagnostics()
 
     # Plot the sobol indices
-- 
GitLab