diff --git a/src/nqrduck_measurement/controller.py b/src/nqrduck_measurement/controller.py index b07a48c..776cbbe 100644 --- a/src/nqrduck_measurement/controller.py +++ b/src/nqrduck_measurement/controller.py @@ -6,7 +6,6 @@ import numpy as np from decimal import Decimal from PyQt6.QtCore import pyqtSlot, pyqtSignal from PyQt6.QtWidgets import QApplication -from nqrduck_pulseprogrammer.view import OptionsDialog from nqrduck_spectrometer.pulsesequence import PulseSequence from .signalprocessing_options import Apodization from nqrduck.module.module_controller import ModuleController @@ -223,7 +222,7 @@ class MeasurementController(ModuleController): apodized_measurement = dialog.apodization(function) - dialog = None + dialog.deleteLater() self.module.model.displayed_measurement = apodized_measurement self.module.model.add_measurement(apodized_measurement) diff --git a/src/nqrduck_measurement/signalprocessing_options.py b/src/nqrduck_measurement/signalprocessing_options.py index cb9e365..5746fdb 100644 --- a/src/nqrduck_measurement/signalprocessing_options.py +++ b/src/nqrduck_measurement/signalprocessing_options.py @@ -29,9 +29,6 @@ class Apodization(DuckFormBuilder): This parameter is used to apply apodization functions to the signal. The apodization functions are used to reduce the noise in the signal. - - Attributes: - APODIZATION_FUNCTIONS (str): The name of the apodization functions option. """ def __init__(self, measurement: Measurement, parent=None) -> None: @@ -94,4 +91,3 @@ class Apodization(DuckFormBuilder): ) return apodized_measurement -