diff --git a/View/signal_processing_tab.py b/View/signal_processing_tab.py index d584e71..707f82e 100644 --- a/View/signal_processing_tab.py +++ b/View/signal_processing_tab.py @@ -1260,11 +1260,19 @@ class SignalProcessingTab(QWidget): def remove_point_with_snr_filter(self): - if len(stg.BS_noise_raw_data) == 0: + if len(stg.filename_BS_raw_data) == 0: + msgBox = QMessageBox() + msgBox.setWindowTitle("Compute noise from profile tail error") + msgBox.setIcon(QMessageBox.Warning) + msgBox.setText("Download acoustic data in previous tab before applying SNR filter") + msgBox.setStandardButtons(QMessageBox.Ok) + msgBox.exec() + + elif len(stg.BS_noise_raw_data) == 0: msgBox = QMessageBox() msgBox.setWindowTitle("SNR filter Error") msgBox.setIcon(QMessageBox.Warning) - msgBox.setText("Load Noise data from acoustic data tab before using SNR filter") + msgBox.setText("Define noise data (file or profile tail) before using SNR filter") msgBox.setStandardButtons(QMessageBox.Ok) msgBox.exec()