From dc4fb117bf301805d4b3d4a19af10789372165aa Mon Sep 17 00:00:00 2001 From: jupfi Date: Mon, 10 Jul 2023 09:09:31 +0200 Subject: [PATCH] Added automatic loading of pulse programmer. --- src/nqrduck_spectrometer_limenqr/model.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/nqrduck_spectrometer_limenqr/model.py b/src/nqrduck_spectrometer_limenqr/model.py index a020993..9771c6f 100644 --- a/src/nqrduck_spectrometer_limenqr/model.py +++ b/src/nqrduck_spectrometer_limenqr/model.py @@ -16,8 +16,9 @@ class LimeNQRModel(BaseSpectrometerModel): self.add_pulse_parameter_option("gate", [self.Gate]) try: - from nqrduck_pulseprogrammer.pulseprogrammer import PulseProgrammer - self.pulse_programmer = PulseProgrammer + from nqrduck_pulseprogrammer.pulseprogrammer import pulse_programmer + self.pulse_programmer = pulse_programmer + logger.debug("Pulse programmer found.") self.pulse_programmer.controller.on_loading(self.pulse_parameter_options) except ImportError: logger.warning("No pulse programmer found.")