refactored is_workflow.py to use OOP
This commit is contained in:
@@ -24,7 +24,6 @@ matplotlib.use('Agg')
|
||||
from common_func import (
|
||||
compute_mechanical_parameters,
|
||||
detect_peaks,
|
||||
get_git_version,
|
||||
identify_low_energy_zones,
|
||||
parse_log,
|
||||
setup_klipper_import,
|
||||
@@ -533,7 +532,9 @@ def extract_angle_and_speed(logname):
|
||||
return float(angle), float(speed)
|
||||
|
||||
|
||||
def vibrations_profile(lognames, klipperdir='~/klipper', kinematics='cartesian', accel=None, max_freq=1000.0):
|
||||
def vibrations_profile(
|
||||
lognames, klipperdir='~/klipper', kinematics='cartesian', accel=None, max_freq=1000.0, st_version=None
|
||||
):
|
||||
set_locale()
|
||||
global shaper_calibrate
|
||||
shaper_calibrate = setup_klipper_import(klipperdir)
|
||||
@@ -708,7 +709,6 @@ def vibrations_profile(lognames, klipperdir='~/klipper', kinematics='cartesian',
|
||||
ax_logo.axis('off')
|
||||
|
||||
# Adding Shake&Tune version in the top right corner
|
||||
st_version = get_git_version()
|
||||
if st_version is not None:
|
||||
fig.text(0.995, 0.985, st_version, ha='right', va='bottom', fontsize=8, color=KLIPPAIN_COLORS['purple'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user