From 80eacceefd841492b27d0adaab4a0914b703b641 Mon Sep 17 00:00:00 2001 From: jupfi Date: Mon, 1 Apr 2024 20:51:40 +0200 Subject: [PATCH] Linting. --- src/nqrduck_measurement/controller.py | 1 - src/nqrduck_measurement/model.py | 7 +++---- src/nqrduck_measurement/view.py | 1 - 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/nqrduck_measurement/controller.py b/src/nqrduck_measurement/controller.py index e5caf78..9b5d850 100644 --- a/src/nqrduck_measurement/controller.py +++ b/src/nqrduck_measurement/controller.py @@ -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 diff --git a/src/nqrduck_measurement/model.py b/src/nqrduck_measurement/model.py index 4a0fa5f..937200b 100644 --- a/src/nqrduck_measurement/model.py +++ b/src/nqrduck_measurement/model.py @@ -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 diff --git a/src/nqrduck_measurement/view.py b/src/nqrduck_measurement/view.py index 76fb572..ba19a6d 100644 --- a/src/nqrduck_measurement/view.py +++ b/src/nqrduck_measurement/view.py @@ -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