Implemented automatic loading of settings.

This commit is contained in:
jupfi 2023-07-10 08:03:14 +02:00
parent 76a4fdead6
commit 685d3de229
2 changed files with 5 additions and 9 deletions

View file

@ -9,8 +9,8 @@ class LimeNQRModel(BaseSpectrometerModel):
def __init__(self, module) -> None: def __init__(self, module) -> None:
super().__init__(module) super().__init__(module)
self.add_setting("rx_gain", 55, "RX Gain") self.add_setting("RX Gain", 55, "RX Gain")
self.add_setting("tx_gain", 40, "TX Gain") self.add_setting("TX Gain", 40, "TX Gain")
self.add_pulse_parameter_option("tx_pulse", [self.RectPulse, self.SincPulse, self.GaussianPulse]) self.add_pulse_parameter_option("tx_pulse", [self.RectPulse, self.SincPulse, self.GaussianPulse])
self.add_pulse_parameter_option("rx_readout", [self.RXReadout]) self.add_pulse_parameter_option("rx_readout", [self.RXReadout])
self.add_pulse_parameter_option("gate", [self.Gate]) self.add_pulse_parameter_option("gate", [self.Gate])

View file

@ -1,14 +1,10 @@
from PyQt6.QtWidgets import QWidget from PyQt6.QtWidgets import QWidget
from nqrduck.module.module_view import ModuleView from nqrduck_spectrometer.base_spectrometer_view import BaseSpectrometerView
from .widget import Ui_Form
class LimeNQRView(ModuleView): class LimeNQRView(BaseSpectrometerView):
def __init__(self, module): def __init__(self, module):
super().__init__(module) super().__init__(module)
widget = QWidget() self.widget = self.load_settings_ui()
self._ui_form = Ui_Form()
self._ui_form.setupUi(self)
self.widget = widget