now using a venv to run the scripts
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
############################################
|
||||
###### INPUT SHAPER KLIPPAIN WORKFLOW ######
|
||||
############################################
|
||||
@@ -223,7 +224,7 @@ def main():
|
||||
os.makedirs(folder)
|
||||
|
||||
if len(sys.argv) < 2:
|
||||
print("Usage: plot_graphs.py [SHAPER|BELTS|VIBRATIONS]")
|
||||
print("Usage: is_workflow.py [SHAPER|BELTS|VIBRATIONS]")
|
||||
sys.exit(1)
|
||||
|
||||
if sys.argv[1].lower() == 'belts':
|
||||
@@ -233,7 +234,7 @@ def main():
|
||||
elif sys.argv[1].lower() == 'vibrations':
|
||||
fig, png_filename = get_vibrations_graph(axis_name=sys.argv[2])
|
||||
else:
|
||||
print("Usage: plot_graphs.py [SHAPER|BELTS|VIBRATIONS]")
|
||||
print("Usage: is_workflow.py [SHAPER|BELTS|VIBRATIONS]")
|
||||
sys.exit(1)
|
||||
|
||||
fig.savefig(png_filename)
|
||||
|
||||
5
K-ShakeTune/scripts/shaketune.sh
Executable file
5
K-ShakeTune/scripts/shaketune.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source ~/klippain_shaketune-env/bin/activate
|
||||
python ~/klippain_shaketune/K-ShakeTune/scripts/is_workflow.py "$@"
|
||||
deactivate
|
||||
Reference in New Issue
Block a user