From fa820d04ef6ff13fd4c1a7f24d9cd8753e51bad2 Mon Sep 17 00:00:00 2001 From: Niklas Date: Mon, 19 Aug 2024 15:17:03 +0200 Subject: [PATCH] Add requirements to oscillator tutorial --- oscillator/mass-left-python/requirements.txt | 2 ++ oscillator/mass-left-python/run.sh | 4 ++++ oscillator/mass-right-python/requirements.txt | 2 ++ oscillator/mass-right-python/run.sh | 4 ++++ 4 files changed, 12 insertions(+) create mode 100644 oscillator/mass-left-python/requirements.txt create mode 100644 oscillator/mass-right-python/requirements.txt diff --git a/oscillator/mass-left-python/requirements.txt b/oscillator/mass-left-python/requirements.txt new file mode 100644 index 000000000..dbffa144f --- /dev/null +++ b/oscillator/mass-left-python/requirements.txt @@ -0,0 +1,2 @@ +numpy >1, <2 +pyprecice~=3.0 diff --git a/oscillator/mass-left-python/run.sh b/oscillator/mass-left-python/run.sh index 2a3902739..f8949a10c 100755 --- a/oscillator/mass-left-python/run.sh +++ b/oscillator/mass-left-python/run.sh @@ -1,6 +1,10 @@ #!/usr/bin/env bash set -e -u +python3 -m venv .venv +. .venv/bin/activate +pip install -r requirements.txt + . ../../tools/log.sh exec > >(tee --append "$LOGFILE") 2>&1 diff --git a/oscillator/mass-right-python/requirements.txt b/oscillator/mass-right-python/requirements.txt new file mode 100644 index 000000000..dbffa144f --- /dev/null +++ b/oscillator/mass-right-python/requirements.txt @@ -0,0 +1,2 @@ +numpy >1, <2 +pyprecice~=3.0 diff --git a/oscillator/mass-right-python/run.sh b/oscillator/mass-right-python/run.sh index e34e0aa8d..7fe22e7de 100755 --- a/oscillator/mass-right-python/run.sh +++ b/oscillator/mass-right-python/run.sh @@ -1,6 +1,10 @@ #!/usr/bin/env bash set -e -u +python3 -m venv .venv +. .venv/bin/activate +pip install -r requirements.txt + . ../../tools/log.sh exec > >(tee --append "$LOGFILE") 2>&1