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

This commit is contained in:
parouby committed 2025-05-07 14:44:29 +02:00
1 parent a570ca3522
commit abce4bac07
1 file changed
+3 -4
+3 -4
View File
@@ -1035,7 +1035,7 @@ class AcousticInversionTab(QWidget):
self.verticalLayout_groupbox_plot_measured_vs_inverted_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()
self.fine_sample_to_plot = [
@@ -1551,11 +1551,10 @@ class AcousticInversionTab(QWidget):
)
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,):
self.verticalLayout_groupbox_plot_measured_vs_inverted_SSC_sand.removeWidget(
self.toolbar_inverted_vs_measured_SSC_sand)
self.verticalLayout_groupbox_plot_measured_vs_inverted_SSC_sand.removeWidget(