minor correction to set distance from free surface to sensor for UBSediFlow data

dev-brahim
brahim 2025-03-24 17:37:51 +01:00
parent 72dff5a26c
commit a8bb150bf8
1 changed files with 14 additions and 4 deletions

View File

@ -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):
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()):