Acoustic inversion: Fix fine plot and minor change sand plot.

dev
Pierre-Antoine 2025-05-07 14:44:29 +02:00
parent a570ca3522
commit abce4bac07
1 changed files with 106 additions and 107 deletions

View File

@ -1035,7 +1035,7 @@ class AcousticInversionTab(QWidget):
self.verticalLayout_groupbox_plot_measured_vs_inverted_SSC_fine\ self.verticalLayout_groupbox_plot_measured_vs_inverted_SSC_fine\
.addWidget(self.canvas_inverted_vs_measured_SSC_fine) .addWidget(self.canvas_inverted_vs_measured_SSC_fine)
if stg.SSC_fine[data_id].shape == (0,): if stg.SSC_fine[data_id].shape != (0,):
fine_id = self.combobox_fine_sample_choice.currentData() fine_id = self.combobox_fine_sample_choice.currentData()
self.fine_sample_to_plot = [ self.fine_sample_to_plot = [
@ -1551,11 +1551,10 @@ class AcousticInversionTab(QWidget):
) )
def plot_measured_vs_inverted_SSC_sand(self): def plot_measured_vs_inverted_SSC_sand(self):
if self.combobox_acoustic_data_choice.count() <= 0:
if self.combobox_acoustic_data_choice.count() > 0: return
if stg.SSC_sand[self.combobox_acoustic_data_choice.currentIndex()].shape == (0,): if stg.SSC_sand[self.combobox_acoustic_data_choice.currentIndex()].shape == (0,):
self.verticalLayout_groupbox_plot_measured_vs_inverted_SSC_sand.removeWidget( self.verticalLayout_groupbox_plot_measured_vs_inverted_SSC_sand.removeWidget(
self.toolbar_inverted_vs_measured_SSC_sand) self.toolbar_inverted_vs_measured_SSC_sand)
self.verticalLayout_groupbox_plot_measured_vs_inverted_SSC_sand.removeWidget( self.verticalLayout_groupbox_plot_measured_vs_inverted_SSC_sand.removeWidget(