From a8bb150bf85ff9275d24c2937e0b2fff44f877fa Mon Sep 17 00:00:00 2001 From: brahim Date: Mon, 24 Mar 2025 17:37:51 +0100 Subject: [PATCH] minor correction to set distance from free surface to sensor for UBSediFlow data --- View/acoustic_data_tab.py | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/View/acoustic_data_tab.py b/View/acoustic_data_tab.py index e54046f..a8d5c82 100644 --- a/View/acoustic_data_tab.py +++ b/View/acoustic_data_tab.py @@ -1177,10 +1177,18 @@ class AcousticDataTab(QWidget): str("%4s" % stg.distance_from_ABS_to_free_surface[self.fileListWidget.currentRow()])) def refresh_distance_from_ABS_to_free_surface(self): - acoustic_data = AcousticDataLoader( - stg.path_BS_raw_data[self.fileListWidget.currentRow()] + "/" + - stg.filename_BS_raw_data[self.fileListWidget.currentRow()] - ) + self.pushbutton_distance_from_ABS_to_free_surface.blockSignals(True) + + if self.combobox_ABS_system_choice.currentIndex() == 1: + acoustic_data = AcousticDataLoader( + stg.path_BS_raw_data[self.fileListWidget.currentRow()] + "/" + + stg.filename_BS_raw_data[self.fileListWidget.currentRow()] + ) + elif self.combobox_ABS_system_choice.currentIndex() == 2: + acoustic_data = AcousticDataLoaderUBSediFlow( + stg.path_BS_raw_data[self.fileListWidget.currentRow()] + "/" + + stg.filename_BS_raw_data[self.fileListWidget.currentRow()] + ) stg.depth[self.fileListWidget.currentRow()] = acoustic_data._r stg.depth_reshape[self.fileListWidget.currentRow()] = acoustic_data.reshape_r() @@ -1206,6 +1214,8 @@ class AcousticDataTab(QWidget): self.update_plot_backscattered_acoustic_signal_recording() self.update_plot_profile() + self.pushbutton_distance_from_ABS_to_free_surface.blockSignals(False) + def temperature_value(self): if findall(r",", self.lineEdit_temperature.text()):