Skip to content

Commit

Permalink
Add missing requirements.txt to oscillator and oscillator-overlap t…
Browse files Browse the repository at this point in the history
…utorial (#556)

* Related to #547 
* Add requirements to oscillator tutorial
* Add requirements to oscillator-overlap tutorial
* Update run.sh to use requirements.txt and create venv

---------

Co-authored-by: Benjamin Rodenberg <[email protected]>
  • Loading branch information
NiklasVin and BenjaminRodenberg authored Aug 29, 2024
1 parent 293c25b commit fc35d6b
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions oscillator-overlap/mass-left-python/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
numpy >1, <2
pyprecice~=3.0
scipy
4 changes: 4 additions & 0 deletions oscillator-overlap/mass-left-python/run.sh
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 3 additions & 0 deletions oscillator-overlap/mass-right-python/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
numpy >1, <2
pyprecice~=3.0
scipy
4 changes: 4 additions & 0 deletions oscillator-overlap/mass-right-python/run.sh
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 3 additions & 0 deletions oscillator/mass-left-python/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
numpy >1, <2
pyprecice~=3.0
scipy
4 changes: 4 additions & 0 deletions oscillator/mass-left-python/run.sh
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 3 additions & 0 deletions oscillator/mass-right-python/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
numpy >1, <2
pyprecice~=3.0
scipy
4 changes: 4 additions & 0 deletions oscillator/mass-right-python/run.sh
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit fc35d6b

Please sign in to comment.