mirror of
https://forgemia.inra.fr/theophile.terraz/acoused.git
synced 2026-10-30 03:10:40 +01:00
The user can reload signal processing after acoustic data boundaries values modification without crash #8
This commit is contained in:
1 parent
6de578a07e
commit
73bf3cf9d3
2 files changed
+7
-4
No files matched your search
@@ -641,6 +641,9 @@ class SignalProcessingTab(QWidget):
|
||||
stg.BS_mean[self.combobox_acoustic_data_choice.currentIndex()] = (
|
||||
np.nanmean(stg.BS_raw_data[self.combobox_acoustic_data_choice.currentIndex()][:, :, val1:val2], axis=2))
|
||||
|
||||
if stg.BS_noise_raw_data[self.combobox_acoustic_data_choice.currentIndex()].shape != (0,):
|
||||
self.compute_noise_from_profile_tail_value()
|
||||
|
||||
def plot_averaged_profile_tail(self):
|
||||
|
||||
# --- Plot averaged signal ---
|
||||
@@ -926,7 +929,7 @@ class SignalProcessingTab(QWidget):
|
||||
# --- Compute noise from value and compute SNR ---
|
||||
|
||||
if stg.BS_stream_bed[self.combobox_acoustic_data_choice.currentIndex()].shape != (0,):
|
||||
|
||||
stg.BS_noise_raw_data[self.combobox_acoustic_data_choice.currentIndex()] = np.array([])
|
||||
stg.BS_noise_raw_data[self.combobox_acoustic_data_choice.currentIndex()] = (
|
||||
np.full(stg.BS_stream_bed[self.combobox_acoustic_data_choice.currentIndex()].shape,
|
||||
float(self.lineEdit_profile_tail_value.text().replace(",", "."))))
|
||||
@@ -986,7 +989,7 @@ class SignalProcessingTab(QWidget):
|
||||
self.plot_pre_processed_BS_signal()
|
||||
self.plot_pre_processed_profile()
|
||||
|
||||
self.activate_list_of_pre_processed_data()
|
||||
# self.activate_list_of_pre_processed_data()
|
||||
|
||||
def plot_noise(self):
|
||||
self.horizontalLayout_groupbox_plot_noise_data.removeWidget(self.canvas_noise)
|
||||
|
||||
Reference in new issue
Block a user