From a95ff29a3e6579e60be939d1e6c9487eae53e6ad Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Mon, 9 Dec 2019 11:15:45 +0100 Subject: [PATCH] [py] Added requirements.txt and example usage for BHE benchmark. --- .gitignore | 1 + Tests/Data/Parabolic/T/3D_3BHEs_array/README.md | 11 +++++++++++ .../Data/Parabolic/T/3D_3BHEs_array/requirements.txt | 1 + 3 files changed, 13 insertions(+) create mode 100644 Tests/Data/Parabolic/T/3D_3BHEs_array/README.md create mode 100644 Tests/Data/Parabolic/T/3D_3BHEs_array/requirements.txt diff --git a/.gitignore b/.gitignore index f1089bbaa80..fc8b5fda06a 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ conaninfo.txt CMakeLists.txt.user* *.pyc +.venv Tests/**/*.md5 Tests/Data/Parabolic/HT/InvalidProjectFiles/*.prj diff --git a/Tests/Data/Parabolic/T/3D_3BHEs_array/README.md b/Tests/Data/Parabolic/T/3D_3BHEs_array/README.md new file mode 100644 index 00000000000..56c4278f3e7 --- /dev/null +++ b/Tests/Data/Parabolic/T/3D_3BHEs_array/README.md @@ -0,0 +1,11 @@ +# How to run + + You need to build OGS with `OGS_USE_PYTHON=ON` and have the Python modules + listed in `requirements.txt` installed, e.g.: + + - In this directory: + - `virtualenv .venv` Make sure you use the same Python interpreter which was + embedded into OGS (look for `Found PythonInterp: ..` in the CMake output) + - `source .venv/bin/activate` + - `pip install -r requirements.txt` + - `PYTHONPATH=.venv/lib/python3.7/site-packages ~/code/ogs6/build/bin/ogs -o ~/tmp 3bhes_1U.prj` diff --git a/Tests/Data/Parabolic/T/3D_3BHEs_array/requirements.txt b/Tests/Data/Parabolic/T/3D_3BHEs_array/requirements.txt new file mode 100644 index 00000000000..ec920551f5d --- /dev/null +++ b/Tests/Data/Parabolic/T/3D_3BHEs_array/requirements.txt @@ -0,0 +1 @@ +TESPy==0.1.3 -- GitLab