mirror of
https://github.com/nqrduck/nqrduck-measurement.git
synced 2024-12-22 15:47:51 +00:00
Linting.
This commit is contained in:
parent
13d9adfb4f
commit
80eacceefd
3 changed files with 3 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue