Added automatic loading of pulse programmer.

This commit is contained in:
jupfi 2023-07-10 09:09:31 +02:00
parent 685d3de229
commit dc4fb117bf

View file

@ -16,8 +16,9 @@ class LimeNQRModel(BaseSpectrometerModel):
self.add_pulse_parameter_option("gate", [self.Gate]) self.add_pulse_parameter_option("gate", [self.Gate])
try: try:
from nqrduck_pulseprogrammer.pulseprogrammer import PulseProgrammer from nqrduck_pulseprogrammer.pulseprogrammer import pulse_programmer
self.pulse_programmer = PulseProgrammer self.pulse_programmer = pulse_programmer
logger.debug("Pulse programmer found.")
self.pulse_programmer.controller.on_loading(self.pulse_parameter_options) self.pulse_programmer.controller.on_loading(self.pulse_parameter_options)
except ImportError: except ImportError:
logger.warning("No pulse programmer found.") logger.warning("No pulse programmer found.")