From 181ea90c0ddde13e9d00701fcc1360ca3dc6dc04 Mon Sep 17 00:00:00 2001 From: jupfi Date: Mon, 17 Jul 2023 15:53:27 +0200 Subject: [PATCH] Changed signal name. --- src/nqrduck_spectrometer_limenqr/controller.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/nqrduck_spectrometer_limenqr/controller.py b/src/nqrduck_spectrometer_limenqr/controller.py index bbff484..73be676 100644 --- a/src/nqrduck_spectrometer_limenqr/controller.py +++ b/src/nqrduck_spectrometer_limenqr/controller.py @@ -81,7 +81,7 @@ class LimeNQRController(BaseSpectrometerController): # Emit the data to the nqrduck core logger.debug("Emitting measurement data") - self.module.nqrduck_signal.emit("single_measurement", measurement_data) + self.module.nqrduck_signal.emit("measurement_data", measurement_data) def update_settings(self, lime): logger.debug( @@ -242,7 +242,8 @@ class LimeNQRController(BaseSpectrometerController): CORRECTION_FACTOR = 2.2e-6 events = self.module.model.pulse_programmer.model.pulse_sequence.events - previous_events_duration = [] + previous_events_duration = 0 + offset = 0 for event in events: logger.debug("Event %s has parameters: %s", event.name, event.parameters) for parameter in event.parameters.values():