Changed implementation of pulse options.

This commit is contained in:
jupfi 2023-07-11 17:51:00 +02:00
parent 782a8206ce
commit 586cff9b3d

View file

@ -1,7 +1,7 @@
import logging
from nqrduck.module.module_model import ModuleModel
from nqrduck_spectrometer.base_spectrometer_model import BaseSpectrometerModel
from nqrduck_spectrometer.pulseparameters import Gate
from nqrduck_spectrometer.pulseparameters import Gate, TXPulse
logger = logging.getLogger(__name__)
@ -16,8 +16,8 @@ class LimeNQRModel(BaseSpectrometerModel):
self.add_setting("Dwell time", "400n", "Dwell time")
self.add_setting("RX Gain", 55, "RX Gain")
self.add_setting("TX Gain", 40, "TX Gain")
self.add_pulse_parameter_option("TX Gate", Gate)
self.add_pulse_parameter_option("RX Gate", Gate)
self.add_pulse_parameter_option("TX", TXPulse)
self.add_pulse_parameter_option("Gate", Gate)
try:
from nqrduck_pulseprogrammer.pulseprogrammer import pulse_programmer