Skip to content

Commit fc35d6b

Browse files
Add missing requirements.txt to oscillator and oscillator-overlap tutorial (#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]>
1 parent 293c25b commit fc35d6b

File tree

8 files changed

+28
-0
lines changed

8 files changed

+28
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
numpy >1, <2
2+
pyprecice~=3.0
3+
scipy

oscillator-overlap/mass-left-python/run.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/usr/bin/env bash
22
set -e -u
33

4+
python3 -m venv .venv
5+
. .venv/bin/activate
6+
pip install -r requirements.txt
7+
48
. ../../tools/log.sh
59
exec > >(tee --append "$LOGFILE") 2>&1
610

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
numpy >1, <2
2+
pyprecice~=3.0
3+
scipy

oscillator-overlap/mass-right-python/run.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/usr/bin/env bash
22
set -e -u
33

4+
python3 -m venv .venv
5+
. .venv/bin/activate
6+
pip install -r requirements.txt
7+
48
. ../../tools/log.sh
59
exec > >(tee --append "$LOGFILE") 2>&1
610

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
numpy >1, <2
2+
pyprecice~=3.0
3+
scipy

oscillator/mass-left-python/run.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/usr/bin/env bash
22
set -e -u
33

4+
python3 -m venv .venv
5+
. .venv/bin/activate
6+
pip install -r requirements.txt
7+
48
. ../../tools/log.sh
59
exec > >(tee --append "$LOGFILE") 2>&1
610

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
numpy >1, <2
2+
pyprecice~=3.0
3+
scipy

oscillator/mass-right-python/run.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/usr/bin/env bash
22
set -e -u
33

4+
python3 -m venv .venv
5+
. .venv/bin/activate
6+
pip install -r requirements.txt
7+
48
. ../../tools/log.sh
59
exec > >(tee --append "$LOGFILE") 2>&1
610

0 commit comments

Comments
 (0)