mirror of
https://github.com/nqrduck/nqrduck-spectrometer-limenqr.git
synced 2024-11-09 11:10:03 +00:00
Implemented automatic loading of settings.
This commit is contained in:
parent
76a4fdead6
commit
685d3de229
2 changed files with 5 additions and 9 deletions
|
@ -9,8 +9,8 @@ class LimeNQRModel(BaseSpectrometerModel):
|
|||
|
||||
def __init__(self, module) -> None:
|
||||
super().__init__(module)
|
||||
self.add_setting("rx_gain", 55, "RX Gain")
|
||||
self.add_setting("tx_gain", 40, "TX Gain")
|
||||
self.add_setting("RX Gain", 55, "RX 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("rx_readout", [self.RXReadout])
|
||||
self.add_pulse_parameter_option("gate", [self.Gate])
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
from PyQt6.QtWidgets import QWidget
|
||||
from nqrduck.module.module_view import ModuleView
|
||||
from .widget import Ui_Form
|
||||
from nqrduck_spectrometer.base_spectrometer_view import BaseSpectrometerView
|
||||
|
||||
|
||||
class LimeNQRView(ModuleView):
|
||||
class LimeNQRView(BaseSpectrometerView):
|
||||
def __init__(self, module):
|
||||
super().__init__(module)
|
||||
|
||||
widget = QWidget()
|
||||
self._ui_form = Ui_Form()
|
||||
self._ui_form.setupUi(self)
|
||||
self.widget = widget
|
||||
self.widget = self.load_settings_ui()
|
||||
|
||||
|
|
Loading…
Reference in a new issue