From c7de6274eba6a01d0458d85a4587713e6fd1a5fa Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Mon, 31 Jul 2023 17:32:52 +0200 Subject: [PATCH] added checkboxes for n_pulses corrections --- slic/gui/daqpanels/config.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/slic/gui/daqpanels/config.py b/slic/gui/daqpanels/config.py index c3a63577..00ae94e4 100644 --- a/slic/gui/daqpanels/config.py +++ b/slic/gui/daqpanels/config.py @@ -66,8 +66,23 @@ class ConfigPanel(wx.Panel): le_instrument = LabeledEntry(self, label="Instrument", value=instrument, style=wx.TE_READONLY) le_pgroup = LabeledEntry(self, label="pgroup", value=pgroup, style=wx.TE_READONLY) + + #SFDAQ: rate_multiplicator only for sf_daq + + box_cb = wx.StaticBoxSizer(wx.VERTICAL, self, "Correct #Pulses by ...") + + cb_correct_rate = wx.CheckBox(self, label="FEL rate") + cb_correct_rm = wx.CheckBox(self, label="Rate Multiplicator") + + cb_correct_rate.SetValue(True) + cb_correct_rm.SetValue(True) + + widgets = (cb_correct_rate, cb_correct_rm) + make_filled_vbox(widgets, border=5, box=box_cb) + le_rate_multi = LabeledEntry(self, label="Rate Multiplicator", value=rate_multiplicator, style=wx.TE_READONLY) + try: pinfo = get_pgroup_info(pgroup) proposer = pinfo["name"] @@ -89,7 +104,7 @@ class ConfigPanel(wx.Panel): widgets = (btn_chans_det, btn_chans_bsc, btn_chans_pvs) hb_chans = make_filled_hbox(widgets) - widgets = (pvd_reprate, STRETCH, st_acquisition, hb_chans, btn_take_pedestal, le_instrument, le_pgroup, le_rate_multi, le_proposer, EXPANDING, le_title, le_ptype, btn_update) + widgets = (pvd_reprate, STRETCH, st_acquisition, hb_chans, btn_take_pedestal, le_instrument, le_pgroup, box_cb, le_rate_multi, le_proposer, EXPANDING, le_title, le_ptype, btn_update) vbox = make_filled_vbox(widgets, border=10) self.SetSizerAndFit(vbox)