mirror of
https://forgemia.inra.fr/theophile.terraz/acoused.git
synced 2026-10-29 19:10:40 +01:00
Acoustic inversion: Fix fine plot and minor change sand plot.
This commit is contained in:
1 parent
a570ca3522
commit
abce4bac07
1 file changed
+3
-4
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user