From 547d1c4a28982cbbab83e767be5ec2dea473846e Mon Sep 17 00:00:00 2001
From: Hu Zhao <zhao@mbd.rwth-aachen.de>
Date: Wed, 14 Dec 2022 11:01:17 +0100
Subject: [PATCH] docs: restructure example gallery

---
 docs/examples/emulator/{robustgasp => }/README.rst         | 0
 docs/examples/emulator/{robustgasp => }/plot_ppgasp.py     | 2 +-
 docs/examples/emulator/{robustgasp => }/plot_scalargasp.py | 0
 docs/examples/simulator/README.rst                         | 4 ++--
 docs/source/conf.py                                        | 4 ++--
 docs/source/examples.rst                                   | 3 ++-
 6 files changed, 7 insertions(+), 6 deletions(-)
 rename docs/examples/emulator/{robustgasp => }/README.rst (100%)
 rename docs/examples/emulator/{robustgasp => }/plot_ppgasp.py (98%)
 rename docs/examples/emulator/{robustgasp => }/plot_scalargasp.py (100%)

diff --git a/docs/examples/emulator/robustgasp/README.rst b/docs/examples/emulator/README.rst
similarity index 100%
rename from docs/examples/emulator/robustgasp/README.rst
rename to docs/examples/emulator/README.rst
diff --git a/docs/examples/emulator/robustgasp/plot_ppgasp.py b/docs/examples/emulator/plot_ppgasp.py
similarity index 98%
rename from docs/examples/emulator/robustgasp/plot_ppgasp.py
rename to docs/examples/emulator/plot_ppgasp.py
index 39a88a6..5ae4059 100644
--- a/docs/examples/emulator/robustgasp/plot_ppgasp.py
+++ b/docs/examples/emulator/plot_ppgasp.py
@@ -25,7 +25,7 @@ PPGaSP: GP emulation for multi-output functions
 import numpy as np
 import os
 
-dir_data = os.path.abspath('../../../../tests/data/')
+dir_data = os.path.abspath('../../../tests/data/')
 
 humanityX = np.genfromtxt(os.path.join(dir_data, 'humanityX.csv'), delimiter=',')
 humanityY = np.genfromtxt(os.path.join(dir_data, 'humanityY.csv'), delimiter=',')
diff --git a/docs/examples/emulator/robustgasp/plot_scalargasp.py b/docs/examples/emulator/plot_scalargasp.py
similarity index 100%
rename from docs/examples/emulator/robustgasp/plot_scalargasp.py
rename to docs/examples/emulator/plot_scalargasp.py
diff --git a/docs/examples/simulator/README.rst b/docs/examples/simulator/README.rst
index fe4eb0f..893145e 100644
--- a/docs/examples/simulator/README.rst
+++ b/docs/examples/simulator/README.rst
@@ -1,2 +1,2 @@
-simulator Examples
-^^^^^^^^^^^^^^^^^^
\ No newline at end of file
+Simulator
+=========
diff --git a/docs/source/conf.py b/docs/source/conf.py
index 216a780..e87c252 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -69,14 +69,14 @@ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
 # configure Sphinx-Gallery
 sphinx_gallery_conf = {
     "examples_dirs": [
-        "../examples/emulator/robustgasp",
+        "../examples/emulator",
         "../examples/inference",
         "../examples/sampler",
         "../examples/sensitivity",
         "../examples/simulator",
     ],  # path to your example scripts,
     "gallery_dirs": [
-        "auto_examples/emulator/robustgasp",
+        "auto_examples/emulator",
         "auto_examples/inference",
         "auto_examples/sampler",
         "auto_examples/sensitivity",
diff --git a/docs/source/examples.rst b/docs/source/examples.rst
index 9f07b14..988d5d3 100644
--- a/docs/source/examples.rst
+++ b/docs/source/examples.rst
@@ -3,5 +3,6 @@ Example Gallery
 
 .. toctree::
 
-   Emulator - RobustGaSP <../auto_examples/emulator/robustgasp/index>
+   Emulator <../auto_examples/emulator/index>
+   Simulator <../auto_examples/simulator/index>
    
\ No newline at end of file
-- 
GitLab