diff --git a/View/acoustic_data_tab.py b/View/acoustic_data_tab.py index c15dd50..374386b 100644 --- a/View/acoustic_data_tab.py +++ b/View/acoustic_data_tab.py @@ -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("
V.m1.5
") 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("m-1
") 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([])) diff --git a/View/signal_processing_tab.py b/View/signal_processing_tab.py index bb6697e..2b518b1 100644 --- a/View/signal_processing_tab.py +++ b/View/signal_processing_tab.py @@ -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()] = (