Working apodization.

This commit is contained in:
jupfi 2024-04-26 11:22:19 +02:00
parent 0cd27cde86
commit c9e3dd1f44
2 changed files with 1 additions and 6 deletions

View file

@ -6,7 +6,6 @@ import numpy as np
from decimal import Decimal from decimal import Decimal
from PyQt6.QtCore import pyqtSlot, pyqtSignal from PyQt6.QtCore import pyqtSlot, pyqtSignal
from PyQt6.QtWidgets import QApplication from PyQt6.QtWidgets import QApplication
from nqrduck_pulseprogrammer.view import OptionsDialog
from nqrduck_spectrometer.pulsesequence import PulseSequence from nqrduck_spectrometer.pulsesequence import PulseSequence
from .signalprocessing_options import Apodization from .signalprocessing_options import Apodization
from nqrduck.module.module_controller import ModuleController from nqrduck.module.module_controller import ModuleController
@ -223,7 +222,7 @@ class MeasurementController(ModuleController):
apodized_measurement = dialog.apodization(function) apodized_measurement = dialog.apodization(function)
dialog = None dialog.deleteLater()
self.module.model.displayed_measurement = apodized_measurement self.module.model.displayed_measurement = apodized_measurement
self.module.model.add_measurement(apodized_measurement) self.module.model.add_measurement(apodized_measurement)

View file

@ -29,9 +29,6 @@ class Apodization(DuckFormBuilder):
This parameter is used to apply apodization functions to the signal. This parameter is used to apply apodization functions to the signal.
The apodization functions are used to reduce the noise in 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: def __init__(self, measurement: Measurement, parent=None) -> None:
@ -94,4 +91,3 @@ class Apodization(DuckFormBuilder):
) )
return apodized_measurement return apodized_measurement