Correction of SNR filter and average processing

dev-brahim
brahim 2024-10-31 10:24:29 +01:00
parent 86c831e126
commit 35c92deeaf
2 changed files with 4 additions and 3 deletions

View File

@ -289,7 +289,7 @@ class AcousticDataTab(QWidget):
self.lineEdit_kt.setMaximumWidth(100)
self.label_kt_unit = QLabel()
self.label_kt_unit.setText("V.m^1.5")
self.label_kt_unit.setText("<p>V.m<sup>1.5</sup></p>")
self.checkbox_kt = QCheckBox()
self.checkbox_kt.setChecked(True)
@ -304,7 +304,7 @@ class AcousticDataTab(QWidget):
self.lineEdit_sound_attenuation.setMaximumWidth(100)
self.label_sound_attenuation_unit = QLabel()
self.label_sound_attenuation_unit.setText("/m")
self.label_sound_attenuation_unit.setText("<p>m<sup>-1</sup><p>")
self.label_profiles = QLabel()
self.label_profiles_value = QLabel()
@ -2552,6 +2552,7 @@ class AcousticDataTab(QWidget):
stg.freq_bottom_detection.append(())
stg.depth_bottom_detection_1st_int_area.append([])
stg.BS_mean.append(np.array([]))
stg.BS_noise_raw_data.append(np.array([]))
stg.BS_noise_averaged_data.append(np.array([]))
stg.SNR_raw_data.append(np.array([]))

View File

@ -1874,7 +1874,7 @@ class SignalProcessingTab(QWidget):
def compute_averaged_BS_data(self):
kernel_avg = np.ones(2 * int(self.lineEdit_horizontal_average.text().replace(",", ".")) + 1)
kernel_avg = np.ones(2 * int(float(self.lineEdit_horizontal_average.text().replace(",", "."))) + 1)
print(kernel_avg)
stg.Nb_cells_to_average_BS_signal[self.combobox_acoustic_data_choice.currentIndex()] = (