mirror of
https://github.com/nqrduck/nqrduck-spectrometer-limenqr.git
synced 2024-11-05 01:00:03 +00:00
Added automatic loading of pulse programmer.
This commit is contained in:
parent
685d3de229
commit
dc4fb117bf
1 changed files with 3 additions and 2 deletions
|
@ -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.")
|
||||
|
|
Loading…
Reference in a new issue