From 71c5c92d4315886089f0504451d36e905fd3afcb Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby Date: Mon, 28 Apr 2025 11:35:56 +0200 Subject: [PATCH] Acoustic data: Minor change. --- View/acoustic_data_tab.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/View/acoustic_data_tab.py b/View/acoustic_data_tab.py index 4064e3d..2c73c1c 100644 --- a/View/acoustic_data_tab.py +++ b/View/acoustic_data_tab.py @@ -820,7 +820,7 @@ class AcousticDataTab(QWidget): # self.fileListWidget.itemSelectionChanged.connect(self.plot_profile) self.update_plot_backscattered_acoustic_signal_recording() self.update_plot_profile() - self.set_range_for_spinboxes_bathymetry() + self.update_bottom_detection_settings() self.fileListWidget.blockSignals(False) @@ -2828,10 +2828,13 @@ class AcousticDataTab(QWidget): self.lineEdit_slider.setText( str(stg.time[self.fileListWidget.currentRow()][self.combobox_frequency_profile.currentIndex(), self.slider.value()-1])) - @trace def update_bottom_detection_settings(self): data_id = max(0, self.fileListWidget.currentRow()) + if stg.depth_bottom_detection_interval[data_id] == 0.0: + self.set_range_for_spinboxes_bathymetry() + return + self.combobox_frequency_bathymetry.setCurrentIndex( int(stg.freq_bottom_detection[data_id][0]) )