From 0b86304b3f25c794d6fe424cfd0fc6413ed46b77 Mon Sep 17 00:00:00 2001 From: jupfi Date: Fri, 9 Feb 2024 15:22:18 +0100 Subject: [PATCH] Fixed bug with multiple pulses. --- src/nqrduck_spectrometer_limenqr/controller.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/nqrduck_spectrometer_limenqr/controller.py b/src/nqrduck_spectrometer_limenqr/controller.py index 767cbc9..a663da9 100644 --- a/src/nqrduck_spectrometer_limenqr/controller.py +++ b/src/nqrduck_spectrometer_limenqr/controller.py @@ -51,7 +51,6 @@ class LimeNQRController(BaseSpectrometerController): def initialize_lime(self): """This method initializes the limr object that is used to communicate with the pulseN driver.""" try: - # driver_path = str(Path(__file__).parent / "contrib/pulseN_test_USB.cpp") n_pulses = self.get_number_of_pulses() lime = PyLimeConfig(n_pulses) return lime @@ -467,7 +466,7 @@ class LimeNQRController(BaseSpectrometerController): offset_for_current_pulse = int(np.ceil(total_blank_duration * lime.srate)) # Offset for the current pulse should be added only once - pof = (offset_for_current_pulse) + pof = [(offset_for_current_pulse)] # Set the offset for the remaining samples of the current pulse (excluding the first sample) # We subtract 1 because we have already set the offset for the current pulse's first sample