From 209a2e326b303cbcfe4369a8d28ad017442157fe Mon Sep 17 00:00:00 2001 From: Randmental <{ID}+{randmental}@users.noreply.github.com> Date: Wed, 12 Jan 2022 16:09:15 +0200 Subject: [PATCH 1/2] self.sweep_control.progress_bar.setValue() needs an int value, percentage sweep is not always guaranteed to be an int --- NanoVNASaver/NanoVNASaver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NanoVNASaver/NanoVNASaver.py b/NanoVNASaver/NanoVNASaver.py index 6818f5b..0948cbf 100644 --- a/NanoVNASaver/NanoVNASaver.py +++ b/NanoVNASaver/NanoVNASaver.py @@ -493,7 +493,7 @@ class NanoVNASaver(QtWidgets.QWidget): for c in self.combinedCharts: c.setCombinedData(s11, s21) - self.sweep_control.progress_bar.setValue(self.worker.percentage) + self.sweep_control.progress_bar.setValue(int(self.worker.percentage)) # add int() RM 12-01-2022 self.windows["tdr"].updateTDR() if s11: From 55d86acec155a15ab916981360cfb88909b69ddf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20M=C3=BCller?= Date: Mon, 17 Jan 2022 08:50:04 +0100 Subject: [PATCH 2/2] Update NanoVNASaver/NanoVNASaver.py --- NanoVNASaver/NanoVNASaver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NanoVNASaver/NanoVNASaver.py b/NanoVNASaver/NanoVNASaver.py index 0948cbf..a56e82b 100644 --- a/NanoVNASaver/NanoVNASaver.py +++ b/NanoVNASaver/NanoVNASaver.py @@ -493,7 +493,7 @@ class NanoVNASaver(QtWidgets.QWidget): for c in self.combinedCharts: c.setCombinedData(s11, s21) - self.sweep_control.progress_bar.setValue(int(self.worker.percentage)) # add int() RM 12-01-2022 + self.sweep_control.progress_bar.setValue(int(self.worker.percentage)) self.windows["tdr"].updateTDR() if s11: