From 7a0848fa9f280fead3f5010a1dbe3b0dd1ac9ec1 Mon Sep 17 00:00:00 2001 From: alfrix Date: Sun, 4 Jun 2023 11:00:47 -0300 Subject: [PATCH] deprecate user slicer compensation, in hindsight this is something that the ui shouldn't do --- ks_includes/config.py | 3 --- panels/job_status.py | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/ks_includes/config.py b/ks_includes/config.py index b7e7fd56..48477be6 100644 --- a/ks_includes/config.py +++ b/ks_includes/config.py @@ -257,9 +257,6 @@ class KlipperScreenConfig: "value": "False", "callback": screen.reload_panels}}, {"use_dpms": {"section": "main", "name": _("Screen DPMS"), "type": "binary", "value": "True", "callback": screen.set_dpms}}, - {"print_estimate_compensation": { - "section": "main", "name": _("Slicer Time correction (%)"), "type": "scale", "value": "100", - "range": [50, 150], "step": 1}}, {"autoclose_popups": {"section": "main", "name": _("Auto-close notifications"), "type": "binary", "value": "True"}}, {"show_heater_power": {"section": "main", "name": _("Show Heater Power"), "type": "binary", diff --git a/panels/job_status.py b/panels/job_status.py index b57f78c8..2e2de1cb 100644 --- a/panels/job_status.py +++ b/panels/job_status.py @@ -642,10 +642,9 @@ class JobStatusPanel(ScreenPanel): with contextlib.suppress(KeyError): if self.file_metadata['estimated_time'] > 0: - usrcomp = (self._config.get_config()['main'].getint('print_estimate_compensation', 100) / 100) # speed_factor compensation based on empirical testing spdcomp = sqrt(self.speed_factor) - slicer_time = ((self.file_metadata['estimated_time'] * usrcomp) / spdcomp) + non_printing + slicer_time = ((self.file_metadata['estimated_time']) / spdcomp) + non_printing self.labels["slicer_time"].set_label(self.format_time(slicer_time)) with contextlib.suppress(Exception):