From 7ba692954fcea9f96acf509fb3387902cbf86816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Boisselier?= Date: Wed, 29 Nov 2023 12:09:30 +0100 Subject: [PATCH] some cleaning --- K-ShakeTune/{K-SH_axis.cfg => K-SnT_axis.cfg} | 0 K-ShakeTune/{K-SH_belts.cfg => K-SnT_belts.cfg} | 0 ...{K-SH_static_freq.cfg => K-SnT_static_freq.cfg} | 0 .../{K-SH_vibrations.cfg => K-SnT_vibrations.cfg} | 0 K-ShakeTune/scripts/graph_belts.py | 7 ------- K-ShakeTune/scripts/graph_shaper.py | 12 ------------ K-ShakeTune/scripts/graph_vibrations.py | 9 --------- K-ShakeTune/scripts/is_workflow.py | 14 -------------- 8 files changed, 42 deletions(-) rename K-ShakeTune/{K-SH_axis.cfg => K-SnT_axis.cfg} (100%) rename K-ShakeTune/{K-SH_belts.cfg => K-SnT_belts.cfg} (100%) rename K-ShakeTune/{K-SH_static_freq.cfg => K-SnT_static_freq.cfg} (100%) rename K-ShakeTune/{K-SH_vibrations.cfg => K-SnT_vibrations.cfg} (100%) diff --git a/K-ShakeTune/K-SH_axis.cfg b/K-ShakeTune/K-SnT_axis.cfg similarity index 100% rename from K-ShakeTune/K-SH_axis.cfg rename to K-ShakeTune/K-SnT_axis.cfg diff --git a/K-ShakeTune/K-SH_belts.cfg b/K-ShakeTune/K-SnT_belts.cfg similarity index 100% rename from K-ShakeTune/K-SH_belts.cfg rename to K-ShakeTune/K-SnT_belts.cfg diff --git a/K-ShakeTune/K-SH_static_freq.cfg b/K-ShakeTune/K-SnT_static_freq.cfg similarity index 100% rename from K-ShakeTune/K-SH_static_freq.cfg rename to K-ShakeTune/K-SnT_static_freq.cfg diff --git a/K-ShakeTune/K-SH_vibrations.cfg b/K-ShakeTune/K-SnT_vibrations.cfg similarity index 100% rename from K-ShakeTune/K-SH_vibrations.cfg rename to K-ShakeTune/K-SnT_vibrations.cfg diff --git a/K-ShakeTune/scripts/graph_belts.py b/K-ShakeTune/scripts/graph_belts.py index 4c31f8f..e56a00d 100755 --- a/K-ShakeTune/scripts/graph_belts.py +++ b/K-ShakeTune/scripts/graph_belts.py @@ -4,13 +4,6 @@ ######## CoreXY BELTS CALIBRATION SCRIPT ######## ################################################# # Written by Frix_x#0161 # -# @version: 2.1 - -# CHANGELOG: -# v2.1: replaced the TwoSlopNorm by a custom made norm to allow the script to work on older versions of matplotlib -# v2.0: updated the script to align it to the new K-Shake&Tune module -# v1.0: first version of this tool for enhanced vizualisation of belt graphs - # Be sure to make this script executable using SSH: type 'chmod +x ./graph_belts.py' when in the folder! diff --git a/K-ShakeTune/scripts/graph_shaper.py b/K-ShakeTune/scripts/graph_shaper.py index fdada5f..95caebe 100755 --- a/K-ShakeTune/scripts/graph_shaper.py +++ b/K-ShakeTune/scripts/graph_shaper.py @@ -6,19 +6,7 @@ # Derived from the calibrate_shaper.py official Klipper script # Copyright (C) 2020 Dmitry Butyugin # Copyright (C) 2020 Kevin O'Connor -# # Written by Frix_x#0161 # -# @version: 2.0 - -# CHANGELOG: -# v2.0: updated the script to align it to the new K-Shake&Tune module -# v1.1: - improved the damping ratio computation with linear approximation for more precision -# - reworked the top graph to add more information to it with colored zones, -# automated peak detection, etc... -# - added a full spectrogram of the signal on the bottom to allow deeper analysis -# v1.0: first version of this script inspired from the official Klipper -# shaper calibration script to add an automatic damping ratio estimation to it - # Be sure to make this script executable using SSH: type 'chmod +x ./graph_shaper.py' when in the folder! diff --git a/K-ShakeTune/scripts/graph_vibrations.py b/K-ShakeTune/scripts/graph_vibrations.py index 0ba6a63..450a4cc 100755 --- a/K-ShakeTune/scripts/graph_vibrations.py +++ b/K-ShakeTune/scripts/graph_vibrations.py @@ -4,15 +4,6 @@ ###### SPEED AND VIBRATIONS PLOTTING SCRIPT ###### ################################################## # Written by Frix_x#0161 # -# @version: 2.0 - -# CHANGELOG: -# v2.0: - updated the script to align it to the new K-Shake&Tune module -# - new features for peaks detection and advised speed zones -# v1.2: fixed a bug that could happen when username is not "pi" (thanks @spikeygg) -# v1.1: better graph formatting -# v1.0: first version of the script - # Be sure to make this script executable using SSH: type 'chmod +x ./graph_vibrations.py' when in the folder ! diff --git a/K-ShakeTune/scripts/is_workflow.py b/K-ShakeTune/scripts/is_workflow.py index 1eec782..762cf42 100755 --- a/K-ShakeTune/scripts/is_workflow.py +++ b/K-ShakeTune/scripts/is_workflow.py @@ -4,20 +4,6 @@ ###### INPUT SHAPER KLIPPAIN WORKFLOW ###### ############################################ # Written by Frix_x#0161 # -# @version: 2.1 - -# CHANGELOG: -# v2.1: added more filesystem sync and file handler checks to avoid using corrupted CSV files by going to fast -# v2.0: new version of this as a Python script (to replace the old bash script) and implement the newer and improved shaper plotting scripts -# v1.7: updated the handling of shaper files to account for the new analysis scripts as we are now using raw data directly -# v1.6: - updated the handling of shaper graph files to be able to optionnaly account for added positions in the filenames and remove them -# - fixed a bug in the belt graph on slow SD card or Pi clones (Klipper was still writing in the file while we were already reading it) -# v1.5: fixed klipper unnexpected fail at the end of the execution, even if graphs were correctly generated (unicode decode error fixed) -# v1.4: added the ~/klipper dir parameter to the call of graph_vibrations.py for a better user handling (in case user is not "pi") -# v1.3: some documentation improvement regarding the line endings that needs to be LF for this file -# v1.2: added the movement name to be transfered to the Python script in vibration calibration (to print it on the result graphs) -# v1.1: multiple fixes and tweaks (mainly to avoid having empty files read by the python scripts after the mv command) -# v1.0: first version of the script based on a Zellneralex script # Usage: # This script was designed to be used with gcode_shell_commands directly from Klipper