From 431c35c5f7fc940368e68ea2d3bd784f4e11fc08 Mon Sep 17 00:00:00 2001 From: Alvaro Ezquerro Date: Thu, 29 Aug 2024 11:08:38 +0200 Subject: [PATCH] Adjust number of decimals of vmon and imon --- gui/CAEN-N1471H/gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/CAEN-N1471H/gui.py b/gui/CAEN-N1471H/gui.py index c381887..5df8d14 100644 --- a/gui/CAEN-N1471H/gui.py +++ b/gui/CAEN-N1471H/gui.py @@ -487,9 +487,9 @@ def read_loop(self): def read_values(self): for i, ch in enumerate(self.m.channels): self.vmon_entries[i].delete(0, tk.END) - self.vmon_entries[i].insert(0, f"{ch.vmon:.2f}") + self.vmon_entries[i].insert(0, f"{ch.vmon:.1f}") self.imon_entries[i].delete(0, tk.END) - self.imon_entries[i].insert(0, f"{ch.imon:.2f}") + self.imon_entries[i].insert(0, f"{ch.imon:.3f}") self.update_state_indicator(i, ch) self.update_alarm_indicators()