From e680a7ee6bd64af06bf0637c8ed045d1aaf7b639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Boisselier?= Date: Fri, 24 May 2024 16:08:25 +0200 Subject: [PATCH] fix corexz vibration tool error --- shaketune/post_processing/graph_vibrations.py | 2 +- shaketune/shaketune_thread.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shaketune/post_processing/graph_vibrations.py b/shaketune/post_processing/graph_vibrations.py index 156d5dd..55009de 100644 --- a/shaketune/post_processing/graph_vibrations.py +++ b/shaketune/post_processing/graph_vibrations.py @@ -125,7 +125,7 @@ def compute_dir_speed_spectrogram(measured_speeds, data, kinematics='cartesian', # Compute the spectrum vibrations for each angle and speed combination for target_angle_idx, (cos_val, sin_val) in enumerate(zip(cos_vals, sin_vals)): for target_speed_idx, target_speed in enumerate(spectrum_speeds): - if kinematics == 'cartesian': + if kinematics == 'cartesian' or kinematics == 'corexz': speed_1 = np.abs(target_speed * cos_val) speed_2 = np.abs(target_speed * sin_val) elif kinematics == 'corexy': diff --git a/shaketune/shaketune_thread.py b/shaketune/shaketune_thread.py index 1993f1a..a34bc2d 100644 --- a/shaketune/shaketune_thread.py +++ b/shaketune/shaketune_thread.py @@ -45,7 +45,7 @@ class ShakeTuneThread(threading.Thread): # This function run in a thread is used to do the CSV analysis and create the graphs def _shaketune_thread(self, graph_creator) -> None: - # Trying to reduce the Shake&Tune prost-processing thread priority to avoid slowing down the main Klipper process + # Trying to reduce the Shake&Tune post-processing thread priority to avoid slowing down the main Klipper process # as this could lead to random "Timer too close" errors when already running CANbus, etc... try: os.nice(20)