From c7216e4e8ebaf4aeb0364194836d9c3ce3a469a6 Mon Sep 17 00:00:00 2001 From: "babintsev.lv" Date: Tue, 26 May 2026 18:05:24 +0300 Subject: [PATCH] fix normalization --- software/gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/software/gui.py b/software/gui.py index 17658c9..a01a7c8 100644 --- a/software/gui.py +++ b/software/gui.py @@ -713,7 +713,7 @@ class MainWindow(QMainWindow): (self.pulse_width * self.adc_dac_ratio) / self.window_size) reference[0:actual_pulse_width] = [ - self.pulse_height - 2 ** (self.adc_dw - 1) + 1, ] * (actual_pulse_width - 1) + (self.pulse_height / 2 ** (self.dac_dw - self.adc_dw)) - 2 ** (self.adc_dw - 1), ] * (actual_pulse_width - 1) return reference