From ec0f648ab80584ce0361bbb99ece6451da16bf02 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Fri, 19 Apr 2024 12:09:44 +0200 Subject: [PATCH] take correction checkboxes into account for pedestal taking from the GUI --- slic/gui/daqpanels/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slic/gui/daqpanels/config.py b/slic/gui/daqpanels/config.py index 236a40ab9..90aebd312 100644 --- a/slic/gui/daqpanels/config.py +++ b/slic/gui/daqpanels/config.py @@ -149,7 +149,9 @@ class ConfigPanel(wx.Panel): self.acquisition.client.power_on(self.chans_det) def on_take_pedestal(self, _event): - self.acquisition.client.take_pedestal(self.chans_det, self.pvd_reprate.value) + rate = self.get_rate() + rm = self.get_rm() + self.acquisition.client.take_pedestal(self.chans_det, rate / rm)