From 8336b62f97731dc5d06f2ca948c2c41fd5f8043a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Boisselier?= Date: Sat, 13 Apr 2024 12:40:58 +0200 Subject: [PATCH] changed repo architecture to decouple python and Klipper macros --- .gitignore | 2 ++ K-ShakeTune/{scripts => }/shaketune.sh | 2 +- K-ShakeTune/shaketune_cmd.cfg | 2 +- {K-ShakeTune/scripts => src}/analyze_axesmap.py | 0 {K-ShakeTune/scripts => src}/common_func.py | 0 {K-ShakeTune/scripts => src}/graph_belts.py | 0 {K-ShakeTune/scripts => src}/graph_shaper.py | 0 {K-ShakeTune/scripts => src}/graph_vibrations.py | 0 {K-ShakeTune/scripts => src}/is_workflow.py | 0 {K-ShakeTune/scripts => src}/klippain.png | Bin {K-ShakeTune/scripts => src}/locale_utils.py | 0 11 files changed, 4 insertions(+), 2 deletions(-) rename K-ShakeTune/{scripts => }/shaketune.sh (53%) rename {K-ShakeTune/scripts => src}/analyze_axesmap.py (100%) rename {K-ShakeTune/scripts => src}/common_func.py (100%) rename {K-ShakeTune/scripts => src}/graph_belts.py (100%) rename {K-ShakeTune/scripts => src}/graph_shaper.py (100%) rename {K-ShakeTune/scripts => src}/graph_vibrations.py (100%) rename {K-ShakeTune/scripts => src}/is_workflow.py (100%) rename {K-ShakeTune/scripts => src}/klippain.png (100%) rename {K-ShakeTune/scripts => src}/locale_utils.py (100%) diff --git a/.gitignore b/.gitignore index 68bc17f..afed117 100644 --- a/.gitignore +++ b/.gitignore @@ -158,3 +158,5 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ + +test/ diff --git a/K-ShakeTune/scripts/shaketune.sh b/K-ShakeTune/shaketune.sh similarity index 53% rename from K-ShakeTune/scripts/shaketune.sh rename to K-ShakeTune/shaketune.sh index 952a161..17ba92d 100755 --- a/K-ShakeTune/scripts/shaketune.sh +++ b/K-ShakeTune/shaketune.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash source ~/klippain_shaketune-env/bin/activate -python ~/klippain_shaketune/K-ShakeTune/scripts/is_workflow.py "$@" +python ~/klippain_shaketune/src/is_workflow.py "$@" deactivate diff --git a/K-ShakeTune/shaketune_cmd.cfg b/K-ShakeTune/shaketune_cmd.cfg index e4d667c..8891eda 100644 --- a/K-ShakeTune/shaketune_cmd.cfg +++ b/K-ShakeTune/shaketune_cmd.cfg @@ -1,5 +1,5 @@ [gcode_shell_command shaketune] -command: ~/printer_data/config/K-ShakeTune/scripts/shaketune.sh +command: ~/printer_data/config/K-ShakeTune/shaketune.sh timeout: 600.0 verbose: True diff --git a/K-ShakeTune/scripts/analyze_axesmap.py b/src/analyze_axesmap.py similarity index 100% rename from K-ShakeTune/scripts/analyze_axesmap.py rename to src/analyze_axesmap.py diff --git a/K-ShakeTune/scripts/common_func.py b/src/common_func.py similarity index 100% rename from K-ShakeTune/scripts/common_func.py rename to src/common_func.py diff --git a/K-ShakeTune/scripts/graph_belts.py b/src/graph_belts.py similarity index 100% rename from K-ShakeTune/scripts/graph_belts.py rename to src/graph_belts.py diff --git a/K-ShakeTune/scripts/graph_shaper.py b/src/graph_shaper.py similarity index 100% rename from K-ShakeTune/scripts/graph_shaper.py rename to src/graph_shaper.py diff --git a/K-ShakeTune/scripts/graph_vibrations.py b/src/graph_vibrations.py similarity index 100% rename from K-ShakeTune/scripts/graph_vibrations.py rename to src/graph_vibrations.py diff --git a/K-ShakeTune/scripts/is_workflow.py b/src/is_workflow.py similarity index 100% rename from K-ShakeTune/scripts/is_workflow.py rename to src/is_workflow.py diff --git a/K-ShakeTune/scripts/klippain.png b/src/klippain.png similarity index 100% rename from K-ShakeTune/scripts/klippain.png rename to src/klippain.png diff --git a/K-ShakeTune/scripts/locale_utils.py b/src/locale_utils.py similarity index 100% rename from K-ShakeTune/scripts/locale_utils.py rename to src/locale_utils.py