This commit is contained in:
jupfi 2024-04-01 20:51:40 +02:00
parent 13d9adfb4f
commit 80eacceefd
3 changed files with 3 additions and 6 deletions

View file

@ -5,7 +5,6 @@ import json
import numpy as np
from decimal import Decimal
from PyQt6.QtCore import pyqtSlot, pyqtSignal
from PyQt6.QtGui import QValidator
from PyQt6.QtWidgets import QApplication
from nqrduck_pulseprogrammer.view import OptionsDialog
from nqrduck_spectrometer.pulsesequence import PulseSequence

View file

@ -4,7 +4,6 @@ import logging
from PyQt6.QtCore import pyqtSignal
from nqrduck_spectrometer.measurement import Measurement
from nqrduck.module.module_model import ModuleModel
from nqrduck.helpers.validators import DuckFloatValidator, DuckIntValidator
logger = logging.getLogger(__name__)
@ -118,7 +117,7 @@ class MeasurementModel(ModuleModel):
def frequency_valid(self) -> bool:
"""Check if the frequency is valid."""
return self._frequency_valid
@frequency_valid.setter
def frequency_valid(self, value: bool):
logger.debug("Frequency valid: " + str(value))
@ -135,11 +134,11 @@ class MeasurementModel(ModuleModel):
self.averages_changed.emit(value)
@property
def averages_valid(self) -> bool:
def averages_valid(self) -> bool:
"""Check if the number of averages is valid."""
logger.debug("Averages valid: " + str(self._averages_valid))
return self._averages_valid
@averages_valid.setter
def averages_valid(self, value: bool):
self._averages_valid = value

View file

@ -3,7 +3,6 @@
import logging
import numpy as np
from PyQt6.QtWidgets import QWidget, QDialog, QLabel, QVBoxLayout
from PyQt6.QtGui import QValidator
from PyQt6.QtCore import pyqtSlot, Qt
from nqrduck.module.module_view import ModuleView
from nqrduck.assets.icons import Logos